Bug #13061 Updated: connection-timeout doesn't work
| From: | sniper@php.net | Date: | Tue, 18 Jun 2002 22:48:43 +0000 |
| Subject: | Bug #13061 Updated: connection-timeout doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11249@lists.php.net to get a copy of this message | ||
ID: 13061
Updated by: sniper@php.net
Reported By: bastian@poettner.net
-Status: Duplicate
+Status: Closed
Bug Type: Sockets related
Operating System: Linux 2.4.9
PHP Version: 4.0.3pl1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2001-09-03 10:33:45] sander@php.net
Dupe of 10765
------------------------------------------------------------------------
[2001-08-31 10:08:19] bastian@poettner.net
I updated the kernel to 2.4.9 and recompiled php 4.0.6 but it still
didn't work.
Then i took the old php 4.0.3pl1 and now it works.
Seems very Strange to me...
------------------------------------------------------------------------
[2001-08-30 11:53:13] bastian@poettner.net
Sorry, I forgot to note, that i used no configure-options.
------------------------------------------------------------------------
[2001-08-30 11:23:01] bastian@poettner.net
I have the same problem using php and linux.
Here is my Code:
$server = "www.microsoft.com";
$start = time();
$fp=fsockopen($server,111,&$errno,&$errstr,30);
echo time()-$start."\n";
Being executed with php as binary (cgi) on the commandline
Cause on www.microsoft.com there no port 111 open, the connection can't
succeed, but php should stop the connection-attempt after 30s (the
timeout). It's doesn't, it always waits 789s. The is pretty annoying.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13061&edit=1