PHP 4.0 Bug #5849: fsockopen() buffers outgoing data

From: Date: Sat, 29 Jul 2000 00:31:42 +0000
Subject: PHP 4.0 Bug #5849: fsockopen() buffers outgoing data
Groups: php.dev 
Request: Send a blank email to php-dev+get-26791@lists.php.net to get a copy of this message
From: sean@dsnet.net Operating system: Redhat 6.2 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: fsockopen() buffers outgoing data I'm creating a IRC bot in PHP using fsockopen() but when I try to send data out like private messages and such, it only sends a few lines at a time then buffers. Once it finds more incoming data then it sends out another portion of what's in the buffer, so on and so forth. If I were to do fputs($socket,"msg\n") 10 times in a row, it wouldn't only actually output say 2,3 lines then stop and when more data came in it'd send a few more lines of it. I'm not sure what the problem is, I've tried to set_socket_block() to off, I've tried on as well and still no success.

« previous php.dev (#26791) next »