Re: socket_recv
| From: | Mike Mackintosh | Date: | Thu, 17 Nov 2011 19:17:33 +0000 |
| Subject: | Re: socket_recv | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315732@lists.php.net to get a copy of this message | ||
On Nov 17, 2011, at 14:03, Tim Streater <tim@clothears.org.uk> wrote:
> I'm playing around with web sockets and have found a couple of simple servers written in
> PHP. They both appear to perform the initial handshake with a client but then just give up because
> socket_recv reports that there is no data. I'm confused by this as, the handshake being
> complete, I wouldn't expect there to be any data if the client hasn't sent any. Is there a
> way to wait with timeout on data showing up at a socket?
>
> --
> Cheers -- Tim
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Any indication if the socket is in blocking mode or not?