Re[2]: [PHP] Socket looping challenge
| From: | Tom Rogers | Date: | Fri, 14 May 2004 00:12:56 +0000 |
| Subject: | Re[2]: [PHP] Socket looping challenge | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186181@lists.php.net to get a copy of this message | ||
Hi,
Friday, May 14, 2004, 9:11:21 AM, you wrote:
RF> The script doesn't even get that first "while" condition line. It loops
RF> a few times (while receiving messages), then when no more messages are
RF> coming from the server, and it times-out, it breaks out of the "while",
RF> then returns to the top again, where it that while condition returns
RF> the error "Warning: socket_read() unable to read from socket [35]:
RF> Resource temporarily unavailable".
Is the remote closing the socket at it's end as the data transmision
has ended or is there more expected? If there is more to come I would
use non blocking socket and the socket select function in the loop.
--
regards,
Tom