php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40905 Socket connection cycling when is more virtual hosts
Submitted: 2007-03-23 18:24 UTC Modified: 2007-04-03 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pavel dot ondrej at centrum dot cz Assigned:
Status: No Feedback Package: Sockets related
PHP Version: 4.4.6 OS: Debian 3.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pavel dot ondrej at centrum dot cz
New email:
PHP Version: OS:

 

 [2007-03-23 18:24 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-26 09:56 UTC] tony2001@php.net
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.



 [2007-04-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 21:03:35 2022 UTC