From: James Edward Gray II Date: 2004-11-27T11:05:06+09:00 Subject: Re: [ANN] Multiplexer - linear non-blocking I/O On Nov 26, 2004, at 7:56 PM, Tanaka Akira wrote: > You'll see blocking problem with send when you send huge data. This problem is pretty easy to work around in threaded servers. Realistically, it's usually one thread passing the data to send into a thread (or thread pool) that just does the writing, in most production servers I work with at least. The server I'm building right now uses thread safe queues to handle this communication. It's trivial to add a data length check, bust up the data, and queue multiple prints. Just remember to do that inside a synchronized block, to ensure that all messages are queued back-to-back. James Edward Gray II