ID:               44874
 Updated by:       il...@php.net
 Reported By:      Richard dot Krehbiel at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Streams related
 Operating System: Windows XP/Server 2003
 PHP Version:      5.2CVS-2008-08-13
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-08-13 17:11:56] Richard dot Krehbiel at gmail dot com

The latest version still exhibits the bad behavior.

Okay, here's a patch.

http://home.comcast.net/~krehbiel3/xp_socket.c.patch

------------------------------------------------------------------------

[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

Reply via email to