ID: 13061
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Operating System: Linux 2.2.18
PHP Version: 4.0.6
New Comment:

Sorry, I forgot to note, that i used no configure-options.

Previous Comments:
------------------------------------------------------------------------

[2001-08-30 11:23:01] [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to