Date: 08/31/01
- Next message: Thomas Wentzel: "[PHP-DEV] update: [PHP-DEV] apache segfaults following script execution"
- Previous message: Thomas Wentzel: "[PHP-DEV] apache segfaults following script execution"
- In reply to: bastian <email protected>: "[PHP-DEV] Bug #13061: connection-timeout doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13061
User updated by: bastian <email protected>
Reported By: bastian <email protected>
Old Summary: connection-timeout doesn't work
Status: Open
Bug Type: Sockets related
Old Operating System: Linux 2.2.18
Operating System: Linux 2.4.9
Old PHP Version: 4.0.6
PHP Version: 4.0.3pl1
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[2001-08-30 11:53:13] bastian <email protected>
Sorry, I forgot to note, that i used no configure-options.
------------------------------------------------------------------------
[2001-08-30 11:23:01] bastian <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Thomas Wentzel: "[PHP-DEV] update: [PHP-DEV] apache segfaults following script execution"
- Previous message: Thomas Wentzel: "[PHP-DEV] apache segfaults following script execution"
- In reply to: bastian <email protected>: "[PHP-DEV] Bug #13061: connection-timeout doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

