On 9/19/06, Niklas Therning <[EMAIL PROTECTED]> wrote:

Instead of blocking on the WriteFuture you may want to implement
IoHandler.messageSent(). For every call to session.write() there will be
a matching call to messageSent() once the message you wrote has been
sent. This avoids blocking the current thread and should make things
more scalable.


Or you can use IoFutureListener by adding a listener to the WriteFuture.  :)

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