#44874 [Opn->Fbk]: dead pfsockopen'ed sockets aren't reaped when the remote end restarts
| From: | jani@php.net | Date: | Sun, 10 Aug 2008 21:46:17 +0000 |
| Subject: | #44874 [Opn->Fbk]: dead pfsockopen'ed sockets aren't reaped when the remote end restarts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127865@lists.php.net to get a copy of this message | ||
ID: 44874
Updated by: jani@php.net
Reported By: Richard dot Krehbiel at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Streams related
Operating System: Windows XP/Server 2003
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-04-30 18:40:17] Richard dot Krehbiel at gmail dot com
Description:
------------
A web page makes a connection to some service with pfsockopen, then
that service dies and is restarted; Future calls to pfsockopen can
return the previously opened socket, to which I/O operations immediately
fail.
This looks like a reincarnation of #23837, a bug which was closed in
2003.
I did manage to track down the error, to main/streams/xp_socket.c, line
280. Change "0 == recv" to "0 >= recv". Windows returns an error at
this point, not 0, because it wants to return ECONNRESET. When I make
this change, the issue is resolved.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44874&edit=1