#6778 [Com]: fsockopen: timeout does not work when nameserver unreachable

From: Date: Thu, 31 Oct 2002 09:10:27 +0000
Subject: #6778 [Com]: fsockopen: timeout does not work when nameserver unreachable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23766@lists.php.net to get a copy of this message
ID: 6778 Comment by: thinking@post.cz Reported By: thomas@kipar.de Status: Closed Bug Type: Sockets related Operating System: Debian 2.2 PHP Version: 4.0.1pl2 New Comment: the problem persists in php4.2.3 (at least it seems to me) - i`m not sure but i think in some older versions it has worked... Previous Comments: ------------------------------------------------------------------------ [2001-07-21 21:56:37] andy@php.net Please upgrade to the latest version of PHP. Re-open if still exists. ------------------------------------------------------------------------ [2001-07-21 21:55:50] andy@php.net Please upgrade to the latest version of PHP. Re-open if still exists. ------------------------------------------------------------------------ [2000-09-16 16:20:46] thomas@kipar.de When doing a plain fsockopen ("www.anyhost.com",$port,&$errno,&$errstr,$timeout) ... and the nameserver for this host does not respond, is unreachable or at least extremely slow (host www.anyhost.com produces 'A record not found'), fsockopen won't return after $timeout (3secs for example)! It hangs for at least 100-120 s. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=6778&edit=1

« previous php.bugs (#23766) next »