dev@grizzly.java.net

Re: controller question

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 19 Jan 2009 11:06:19 +0100

Hi Gustav,

> why does controller call
> selectorHandler.getSelectionKeyHandler().cancel(key); for invalid
> keys ?.
> the cancel method first line is to check for invalid and if so return;
Agree, logic looks strange. Though it's good to have one place
(SelectionKeyHandler.cancel()), where one can place a logic to handle
SelectionKey invalidation, closing.
What do you think?

Thanks.

WBR,
Alexey.

>
>
> i have seen the same thing done in cometselector.
>
> what is the intended logic ?
>
> --
> your servant
> gustav trede
>
> coding is art - not only something that bring food on the table,
> everybody should be able to feel proud about their code,
> that they have performed their best considering the given conditions.
>