From:             Richard dot Krehbiel at gmail dot com
Operating system: Windows XP/Server 2003
PHP version:      5.2.5
PHP Bug Type:     Sockets related
Bug description:  dead pfsockopen'ed sockets aren't reaped when the remote end 
restarts

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 bug report at http://bugs.php.net/?id=44874&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44874&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44874&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44874&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44874&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44874&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44874&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44874&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44874&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44874&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44874&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44874&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44874&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44874&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44874&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44874&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44874&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44874&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44874&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44874&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44874&r=mysqlcfg

Reply via email to