dev@grizzly.java.net

Re: Properly closing channel

From: gustav trede <gustav.trede_at_gmail.com>
Date: Mon, 16 Nov 2009 23:13:37 +0100

2009/11/16 Igor Minar <iiminar_at_gmail.com>

> Hi there,
>
> I noticed that there is a lot of stuff going on in grizzly when it closes a
> channel:
>
>
> https://grizzly.dev.java.net/nonav/xref/com/sun/grizzly/BaseSelectionKeyHandler.html
> #275
>
> Is it really necessary to go through all these steps? I thought that when
> one calls Channel#close it will close all the underlying stuff.
>
> I don't consider the grizzly's implementation to be problematic, I just
> wonder what is the justification for the complexity.
>
>
> I have complained on that too , the answer i got from JFA was that its
required due to old bugs somewhere (older web browsers if i remember
correctly) and that we cant risk breaking anything by optimising it away
now.

thanks,
> Igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>


-- 
regards
 gustav trede