php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5267 pfsockopen drops the socket between script loads
Submitted: 2000-06-29 13:45 UTC Modified: 2000-08-18 18:51 UTC
From: alex at echofactor dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: RedHat Linux 6.2 virgin everythi
Private report: No CVE-ID: None
 [2000-06-29 13:45 UTC] alex at echofactor dot com
when call pfsockopen there is a problem.  The first time you call it, it returns a resource id that is valid.  You trans/recv over the socket fine.  You call the script the second time.  It returns the same resource id except there is nothing on the end of it.  Logs on the program that is being tested against show there was one connection made, and one transaction completed.  The one of the first attempt, but that there were no subsequence connections (as you might expect as there would be one per apache thread, and as there are definately more than one apache thread...)  Changing the code to just plain fsockopen fixes the problem, all the transactions go fine, so It's definately not the end point that is failing.  I don't know if the apache thread that serviced both requests was the same, but the resource_id # was the same.  When trying this using a scale test package which should use all the apache threads the same result was observed.

PHP was compiled against apache_1.3.12 with --enable-track-vars --with-oci8 --with-oracle --with-apache=../apache_1.3.12

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 02:06 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-18 18:51 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 02:01:32 2024 UTC