users@grizzly.java.net

Re: key invalid in onConnect, under high load

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Thu, 09 Sep 2010 10:30:42 +0200

Hi Tobias,

can you pls. use the latest 1.9.19 release?
Regarding the ClosedChannelException, I have just one guess, is that
connection phase takes too long and finally channel is getting closed
due to idle timeout expiration.
If you can share some part of your code, using which we can reproduce
the problem - I can check it.

Thanks.

WBR,
Alexey.


> (Beginner on the mailinglist and with Grizzly...)
>
> I'm using Grizzly 1.9.18k, and have an implementation of a HTTP
> client and server running. When running under high load I run into
> problems in the onConnect() in my CallbackHandler:
>
> SelectionKey key = ioEvent.attachment().getSelectionKey();
> connectorHandler.finishConnect(key);
>
> The key seems to be invalid/cancelled and then the finishConnect
> fails with an ClosedChannelException.
> I've checked and the key and the underlying channel does not seem to
> be "reused".
>
> Any ideas what I might have done wrong?
>
> /Tobias
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>