Bug #13061: connection-timeout doesn't work

From: Date: Thu, 30 Aug 2001 15:23:01 +0000
Subject: Bug #13061: connection-timeout doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-64725@lists.php.net to get a copy of this message
From: bastian@poettner.net Operating system: Linux 2.2.18 PHP version: 4.0.6 PHP Bug Type: Sockets related Bug description: connection-timeout doesn't work 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 bug report at: http://bugs.php.net/?id=13061&edit=1

« previous php.dev (#64725) next »