Can't close a Netty Client

Nicholas Whitehead nwhitehead at heliosdev.org
Thu Jul 21 11:47:26 EDT 2011


You're not shutting the client down in a Netty worker thread are you ?

On Thu, Jul 21, 2011 at 11:29 AM, jdarnold [via Netty Forums and Mailing
Lists] <ml-node+6607255-1502630422-281582 at n2.nabble.com> wrote:

> On Wed, 20 Jul 2011 01:42:51 -0700 (PDT)
> "B.L. Zeebub" <[hidden email]<http://user/SendEmail.jtp?type=node&node=6607255&i=0>>
> wrote:
>
> > Hi
> >
> > Below is the code which starts my NettyClient. The class
> > NettyClientService is created and started by an external application.
> > When the external application terminates, it calls
> > NettyClientService.shutdown() which hangs.
> >
> > As the code is written, it's hanging on the
> > channel.close().awaitUninterruptibly(). If I change that to simple
> > channel.close(), then the class hangs on
> > bootstrap.releaseExternalResources();
> >
> > Any suggestions on what's wrong, or on how I can further diagnose the
> > problem?
>
> Oddly enough, I'm having the same problem. Basically, it's looping in
> the 'terminate' static routine in ExecutorUtil.java. It calls
> shutdownNow and waits 100msec for it to finish. If it doesn't, it just
> tries it again.
>
> So for some reason the ExecutorService isn't shutting down and it just
> loops forever. I suppose we need to figure out why it isn't shutting
> down, but even then, I don't think it should loop forever waiting for
> shutdown to work. Maybe just loop a few times, then just kill it?
>
> --
> Jonathan Arnold        Webstream: http://hieronymus.soup.io
>
> Talent wins games, but team work and intelligence wins championships.
> Michael Jordan
>
> _______________________________________________
> netty-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=6607255&i=1>
> https://lists.jboss.org/mailman/listinfo/netty-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-t-close-a-Netty-Client-tp6601815p6607255.html
>  To start a new topic under Netty User Group, email
> ml-node+685700-1828515328-281582 at n2.nabble.com
> To unsubscribe from Netty User Group, click here<http://netty-forums-and-mailing-lists.685743.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=685700&code=bndoaXRlaGVhZEBoZWxpb3NkZXYub3JnfDY4NTcwMHwxMDI2NzM1ODg=>.
>
>


--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Can-t-close-a-Netty-Client-tp6601815p6607343.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list