Re: How to set socket_read time out

From: Date: Mon, 19 Jul 2010 08:10:21 +0000
Subject: Re: How to set socket_read time out
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306985@lists.php.net to get a copy of this message
On Mon, Jul 19, 2010 at 9:45 AM, Gary wrote: > How can I get calls to scoket_read to timeout if the server stops > responding? Sorry. Found it: socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 1, 'usec' => 0));

« previous php.general (#306985) next »