[PHP] Re: php sockets was Re: [PHP] socket_write eats data - solved

2003-09-15 Thread Daniel Souza
Probably your problems about "i can send about seven messages per second" may be relationed to OS's tcp connection stream buffering... try to flush every fd after write to it. I wrote a multi-threaded (pcntl_fork()) application in phpcli using many sockets and they worked well... array iterations a

[PHP] php sockets was Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Raditha Dissanayake
Hi thomas, Thomas Weber wrote: IMAP? We were talking about IRC, Used imap as an example. the Internet Relay Chat. In detail, my problems doesn't even refer to IRC directly, as i am developing a server for a html-based webchat, but the server-structure and the messages are nearly the same. Yes m

Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Thomas Weber
c: "PHP-List" <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 7:26 AM Subject: Re: [PHP] socket_write eats data - solved > Wouldn't this multiple connections be a problem for php? IMHO one of the > main draw backs of the PHP IMAP library is the fact that you have t

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
ECTED]>; "PHP-List" <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 2:59 AM Subject: Re: [PHP] socket_write eats data - solved Is IRC UDP? Thomas Weber wrote: Hi, i've checked a hundred things before posting this question, but i forgot the most importan

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
<[EMAIL PROTECTED]>; "PHP-List" <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 2:59 AM Subject: Re: [PHP] socket_write eats data - solved > Is IRC UDP? > Thomas Weber wrote: > > >Hi, > > > >i've checked a hundred things before posting this

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
Is IRC UDP? Thomas Weber wrote: Hi, i've checked a hundred things before posting this question, but i forgot the most important thing, the buffer. The 'eaten' writes were buffered by the network-kernel and sent as bunch of data. If too much data for the buffer is sent, the write is broken up and c

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
Hi, i've checked a hundred things before posting this question, but i forgot the most important thing, the buffer. The 'eaten' writes were buffered by the network-kernel and sent as bunch of data. If too much data for the buffer is sent, the write is broken up and completed in the next bunch-of-da