Bug #14625: socket servers expect more data from PHPCGI
| From: | wolfgang dot sprick at tlc dot de | Date: | Thu, 20 Dec 2001 16:23:34 +0000 |
| Subject: | Bug #14625: socket servers expect more data from PHPCGI | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74600@lists.php.net to get a copy of this message | ||
From: wolfgang.sprick@tlc.de
Operating system: Windows 2000
PHP version: 4.1.0
PHP Bug Type: Sockets related
Bug description: socket servers expect more data from PHPCGI
Standard sequence of single fsockopen, fputs, fgets, fclose "hangs"
servers.
Our own C++-servers and several samples of socket-servers we found in the
Internet work with other clients, but when being used by PHP scripts in the
standard way described all around try to recv(eive) more data from the PHP
script, that itself waits at the fgets statement. Finally this locking
situation is resolved by some timer running up at client or server side.
Data sent by PHP script is received by the servers in the correct length
and echo servers or others do send data back before going back to the recv
the actually hangs the (non-blocking server or thread).
So from PHP side some information like "end of transmission" seems to be
missing at the server side.
Same behavior using PHP 4.0.6
--
Edit bug report at: http://bugs.php.net/?id=14625&edit=1