#40905 [Opn->Fbk]: Socket connection cycling when is more virtual hosts
| From: | tony2001@php.net | Date: | Mon, 26 Mar 2007 09:56:37 +0000 |
| Subject: | #40905 [Opn->Fbk]: Socket connection cycling when is more virtual hosts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110780@lists.php.net to get a copy of this message | ||
ID: 40905
Updated by: tony2001@php.net
Reported By: pavel dot ondrej at centrum dot cz
-Status: Open
+Status: Feedback
Bug Type: Sockets related
Operating System: Debian 3.1
PHP Version: 4.4.6
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-03-23 18:24:40] pavel dot ondrej at centrum dot cz
Description:
------------
Hi!
When we have more than 987 virtual hosts on the server, so socket
functions and ftp functions don't work. When we try other from other
server virtual hosts config where is more than 1100 VH, so all is OK. We
tried change linux, hw,.. but nothing ... Here is phpinfo
http://mn31.gigant.cz/info.php
Thx a lot for any idea!
Reproduce code:
---------------
$fp = fsockopen("www.centrum.cz", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.centrum.cz\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
Expected result:
----------------
Afther this script or any other with ftp or socket connection browser
is cyclicing and don't give any timeout.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40905&edit=1