[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

Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Thomas Weber
: 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 to open and close and imap connection for each page. That issue

[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

[PHP] socket_write eats data

2003-09-13 Thread Thomas Weber
Hi, I am deveoping a chatserver in IRC-style in PHP. For communication it uses socket-multiplexing aka socket_select. So long so good, works perfectly. The problem is, than when i make several socket_write's to the same client without waiting about 0.1sec after each write, the written data gets

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
-List [EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:15 PM Subject: [PHP] socket_write eats data Hi, I am deveoping a chatserver in IRC-style in PHP. For communication it uses socket-multiplexing aka socket_select. So long so good, works perfectly. The problem is, than when i make

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
Weber [EMAIL PROTECTED] To: PHP-List [EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:15 PM Subject: [PHP] socket_write eats data Hi, I am deveoping a chatserver in IRC-style in PHP. For communication it uses socket-multiplexing aka socket_select. So long so good, works perfectly

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Thomas Weber
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 important thing, the buffer. The 'eaten' writes were buffered

Re: [PHP] socket_write eats data - solved

2003-09-13 Thread Raditha Dissanayake
, 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 important thing, the buffer. The 'eaten' writes were buffered by the network-kernel