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

[PHP] Non-blocking sockets

2006-10-27 Thread Eric
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 TCP/Stream sock

[PHP] non-blocking sockets + newbie compile question

2003-03-11 Thread Joshua Alexander
1) socket_set_blocking()... what the devil's up with this? *I* get socket_set_blocking(): supplied resource is not a valid stream resource, which is obviously a lie, since I can connect to the server program and socket_recv and socket_send both work. I'm using PHP 4.3.1 (cgi) 2) I figured I'd