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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 30 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 01:01:28 2024 UTC