#23567 [NEW]: pfsockopen() returning bad connection
| From: | dietrich dot ayala at foundstone dot com | Date: | Fri, 09 May 2003 18:08:59 +0000 |
| Subject: | #23567 [NEW]: pfsockopen() returning bad connection | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39402@lists.php.net to get a copy of this message | ||
From: dietrich dot ayala at foundstone dot com
Operating system: windows 2000
PHP version: 4.3.1
PHP Bug Type: Sockets related
Bug description: pfsockopen() returning bad connection
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 bug report at http://bugs.php.net/?id=23567&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23567&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23567&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23567&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23567&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23567&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23567&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23567&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23567&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23567&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23567&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23567&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23567&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23567&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23567&r=gnused