Re: [PHP] problems re-reading from socket
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Fri, 24 Nov 2006 13:41:59 -0600 (CST)
On Fri, November 24, 2006 1:21 pm, Martin Marques wrote:
I have a daemon class which reads and answers using socket_read and
socket_write functions. The things is that I connect to the daemon,
sent a chain and the I get an answer, but after that the daemon get's
struck in the next socket_read.
Have you set:
http://www.php.net/manual/en/function.socket-set-nonblock.php
It seems to me that if you don't, you are going to wait for 2048
bytes, no matter how little/much data is there...
Not an expert...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.
- Follow-Ups:
- Re: [PHP] problems re-reading from socket
- From: Martin Marques
- Re: [PHP] problems re-reading from socket
- References:
- problems re-reading from socket
- From: Martin Marques
- problems re-reading from socket
- Prev by Date: problems re-reading from socket
- Next by Date: Re: [PHP] Select two table with DB_DataObject
- Previous by thread: problems re-reading from socket
- Next by thread: Re: [PHP] problems re-reading from socket
- Index(es):