note 29301 added to function.fsockopen

From: Date: Sun, 09 Feb 2003 11:32:02 +0000
Subject: note 29301 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-43676@lists.php.net to get a copy of this message
Headsup guys, I struggled for weeks with timeout errors where the timeout arg was completely ignored, and fsockopen caused lengthy lockups. Seems it was doing hostnamelookups, which was locking up my script, possibly due to the non response of the DNS server , not for seconds.. but for 10 minutes or more. On some servers, I was able to get around this by setting my default DNS server to a localhost. -- http://www.php.net/manual/en/function.fsockopen.php http://master.php.net/manage/user-notes.php?action=edit+29301 http://master.php.net/manage/user-notes.php?action=delete+29301 http://master.php.net/manage/user-notes.php?action=reject+29301

« previous php.notes (#43676) next »