From:             pavel dot ondrej at centrum dot cz
Operating system: Debian 3.1
PHP version:      4.4.6
PHP Bug Type:     Sockets related
Bug description:  Socket connection cycling when is more virtual hosts

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 bug report at http://bugs.php.net/?id=40905&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40905&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40905&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40905&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40905&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40905&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40905&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40905&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40905&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40905&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40905&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40905&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40905&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40905&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40905&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40905&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40905&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40905&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40905&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40905&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40905&r=mysqlcfg

Reply via email to