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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dietrich dot ayala at foundstone dot com
New email:
PHP Version: OS:

 

 [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: Thu Apr 25 19:01:33 2024 UTC