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
: 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
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
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
-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
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
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
, 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
8 matches
Mail list logo