On 8/10/06, Thor Wehage <[EMAIL PROTECTED]> wrote:

Hi,

If I write too much data to to an IoSession (many short messages, not a
big chunk), do I then risk loosing some of that data ?
I'm thinking about making a fifo queue system, and then write the next
message when messageSent() is invoked, but is it neccesary ?


IoSession already has a write queue in itself, so you don't need to create
one for you.  But you will have to be careful when you write a lot of data.
A client might have low bandwidth and cause the server throw
OutOfMemoryError.

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to