Re: [PHP] Non-blocking sockets

2006-10-29 Thread Richard Lynch
On Fri, October 27, 2006 3:23 pm, Eric wrote: > When I create a socket/stream that connects to a news sever and try to > recv data from the socket when there is nothing there (Like if the > server sends one line and I call recv twice) the socket freezes. I > assume this is because using socket_crea

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Rasmus Lerdorf
Jochem Maas wrote: > Eric wrote: >> Stut wrote: >>> Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume thi

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Jochem Maas
Eric wrote: > Stut wrote: >> Eric wrote: >>> When I create a socket/stream that connects to a news sever and try >>> to recv data from the socket when there is nothing there (Like if the >>> server sends one line and I call recv twice) the socket freezes. I >>> assume this is because using socket_c

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Eric
Stut wrote: Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Stut
Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a blocking TC