Endless loop after shutdown

Thomas Bocek bocek at ifi.uzh.ch
Mon Nov 16 03:27:27 EST 2009


Hi Trustin,

Trustin Lee (이희승) wrote:
was some time ago. Anyway
> I'll post to netty-dev. Good night.
> 
> To sum up:
> 
> 1) There's no need to call SelectionKey.cancel() before calling Channel.close()
> 2) Hence, there's the proposed patch should be be unapplied.
> 
> I removed unnecessary SelectionKey.cancel() calls and the
> synchronization block.  Please give the latest build a try and let me
> know if you find any regression:
> 
>     http://hudson.jboss.org/hudson/view/Netty/job/netty/793/

Thanks, I'll try it out. The reason for the endless loop was not in
Netty, although after applying the patch, it did not show up in my
previous tests anymore (sorry, wrong conclusion). However, I had the
same issues after running my app for several hours. In some cases, I
shutdown my app with an incoming connection still present. I figured
out, that I did not close it properly with a channelgroup.

Thomas


More information about the netty-dev mailing list