On Wed, Oct 29, 2008 at 7:29 AM, Dannyy <[EMAIL PROTECTED]> wrote:
>> Are you waiting for the send to complete?
>> You could be writing messages which are failing to be sent.
>>
>
> Oh, I didn't know we could wait for the send to complete. I did make a large
> enough send buffer for the client though. Besides, the plain datagram socket
> server didn't have that many losses even though I used the same client
> logic. Thanks,

Either attached an IoFutureListener or use the returned Future from
the write to complete via await() or awaitUninterruptibly()

If you are sending large messages, your OS buffer will be filling up
and hence you will be losing data before it is even sent.

Reply via email to