Re: Why would a socket be unavailable?
| From: | Daniel Clark | Date: | Thu, 13 May 2004 23:13:20 +0000 |
| Subject: | Re: Why would a socket be unavailable? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186176@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/ref.sockets.ph
> I just read something about sock warnings this morning. It said
> sometimes they drop off, and to ignore the warnings, but capture the
> errors.
>
>> I get this output:
>>
>> PHP Warning: socket_read() unable to read from socket [35]: Resource
>> temporarily unavailable in /Users/rene/Sites/gpspolice/titan/cr.php on
>> line 63
>>
>> From this code:
>>
>> do {
>> socket_set_block($socket);
>> socket_set_option($socket,SOL_SOCKET,SO_RCVTIMEO,$timeout);
>> while(($buf = socket_read($socket,128,PHP_BINARY_READ)) !== false) {
>>
>> [...]
>>
>> And it's failing at "while". Any ideas?
>>
>> ...Rene