ExecutorUtil.terminate() can't stop executors

Thomas Bocek bocek at ifi.uzh.ch
Thu Apr 8 03:24:38 EDT 2010


Hi Leandro,

I had a similar problem, where ExecutorUtil.terminate() seemed to be in
an endless loop. The problem was, that I did not shut down all
connections. Make sure that (from
http://www.jboss.org/file-access/default/members/netty/freezone/guide/3.2/html_single/index.html,
Section 1.9):

1. Close all server sockets if there are any,
2. Close all non-server sockets (i.e. client sockets and accepted
sockets) if there are any, and
3. Release all resources used by ChannelFactory.

In my case, there was still a channel open.

Thomas

Leandro Cruz wrote:
> Hi all,
> 
> I can't stop Netty by calling bootstrap.releaseExternalResources();
> I noticed that ExecutorUtil.terminate() isn't able to terminate one of my
> executors (the NIO server worker).
> How can I shutdown netty properly?
> 
> --
> Leandro Rodrigo Saad Cruz
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users



More information about the netty-users mailing list