#23567 [Opn->Asn]: pfsockopen() returning bad connection
| From: | wez@php.net | Date: | Sat, 10 May 2003 18:31:28 +0000 |
| Subject: | #23567 [Opn->Asn]: pfsockopen() returning bad connection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39419@lists.php.net to get a copy of this message | ||
ID: 23567
Updated by: wez@php.net
Reported By: dietrich dot ayala at foundstone dot com
-Status: Open
+Status: Assigned
Bug Type: Sockets related
Operating System: windows 2000
PHP Version: 4.3.1
-Assigned To:
+Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2003-05-09 13:08:59] dietrich dot ayala at foundstone dot com
if i connect to a remote system using pfsockopen, and the remote system
closes the connection (say it's a web server, and returns 500),
subsequent calls to pfsockopen (to same remotes system) return a stream
resource, but attempting to use the resource results in "invalid
stream" errors.
seems like it's returning the original connection, even though it's not
alive, instead of creating a new one.
this is in a single script (so a single process), and is repeatable.
i reproduced in isapi and cgi under IIS/W2K.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23567&edit=1