ExecutorUtil.terminate() can't stop executors

Leandro Cruz leandro.saad at gmail.com
Thu Apr 8 20:19:03 EDT 2010


I´m calling all channels I can find, but it´s not working.
Stopping the Executor before calling bootstrap.releaseExternalResources()
worked.

--
Leandro Rodrigo Saad Cruz


On Thu, Apr 8, 2010 at 4:24 AM, Thomas Bocek <bocek at ifi.uzh.ch> wrote:

> 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
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100408/2fad7053/attachment.html 


More information about the netty-users mailing list