php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23567 pfsockopen() returning bad connection
Submitted: 2003-05-09 13:08 UTC Modified: 2003-05-12 19:13 UTC
From: dietrich dot ayala at foundstone dot com Assigned: wez (profile)
Status: Closed Package: Sockets related
PHP Version: 4.3.x OS: all
Private report: No CVE-ID: None
 [2003-05-09 13:08 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-12 19:13 UTC] wez@php.net
Fixed in CVS.
Please wait for next snapshot (and static openssl version of php4ts.dll) to be built.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC