There is another kind of blocking you could be running into (other than the
type mentioned in the manual) and it was eluded to before.  What are the
odds you are going through a firewall to get to the server.  Firewalls will
reject attempts to connect to unauthorized sockets on protected machines.

Warren Vail


-----Original Message-----
From: René Fournier [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 4:24 PM
To: [EMAIL PROTECTED]
Cc: php
Subject: Re: [PHP] Why would a socket be unavailable?


On Thursday, May 13, 2004, at 05:13 PM, Daniel Clark wrote:

> http://www.php.net/manual/en/ref.sockets.ph

Yes, I've read that page... many times. It has not helped me. That is 
why I am posting my problem here, in that hopes that someone can help.

(I don't mean to be completely helpless, but I just don't yet 
understand blocking/non-blocking sockets, and the parameters 
associated, since they are not well-documented. Someone said I 
shouldn't complain about this-and I'm not-since the functions are 
marked  "Experimental". But this is precisely why I'm posting the 
question here.)

.Rene


>> 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
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to