Re: problems re-reading from socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux