Bug #15836 Updated: Bug #11162 pfsockopen closes connection after script finishes !
| From: | derick@php.net | Date: | Sat, 02 Mar 2002 18:44:14 +0000 |
| Subject: | Bug #15836 Updated: Bug #11162 pfsockopen closes connection after script finishes ! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1494@lists.php.net to get a copy of this message | ||
ID: 15836
Updated by: derick@php.net
Reported By: feddy@unicon.ru
Status: Open
-Bug Type: Sockets related
+Bug Type: Documentation problem
Operating System: FreeBSD
PHP Version: 4.1.1
New Comment:
php.net@domainofdarkness.com
29-Jan-2001 03:26
OK, WRT to the p* functions opening a new connection when one already
exists. It is my understanting that (under Apache anyways) this is on
a
per-process basis. If you do a 'ps auxw|grep httpd' on your server you
will see more than one process. What p* does is make a p-connection on
one
of those processes only, the one that actually handles your request.
Chances are that when you hit the page again it will be answered by a
different process. I'm guessing if you keep hitting reload you'll get
around to the original process again and there will be no error message
or
second connection open. Anyhow, this is true of all p* functions; they
open not one connection per server, but one connection per server
_process_.
Hope this explains something (it's from the manual at
http://www.php.net/manual/en/function.pfsockopen.php)
I'm keeping this open as a doc problem though, cause the documentation
is very skimmy.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 13:39:56] feddy@unicon.ru
The problem still exists!
Connection, opened by pfsockopen(), is closing when the script is
finishes. (tested by just simple netcat -l and by multithreaded
java
chat server)
PHP Version 4.1.1
Apache/1.3.20
FreeBSD 4.5-STABLE
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15836&edit=1