I´m calling all channels I can find, but it´s not working.<div>Stopping the Executor before calling bootstrap.releaseExternalResources() worked.</div><div><br></div><div>--<br><div>Leandro Rodrigo Saad Cruz<br>
<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 4:24 AM, Thomas Bocek <span dir="ltr">&lt;<a href="mailto:bocek@ifi.uzh.ch">bocek@ifi.uzh.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

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


Section 1.9):<br>
<br>
1. Close all server sockets if there are any,<br>
2. Close all non-server sockets (i.e. client sockets and accepted<br>
sockets) if there are any, and<br>
3. Release all resources used by ChannelFactory.<br>
<br>
In my case, there was still a channel open.<br>
<br>
Thomas<br>
<div><div></div><div class="h5"><br>
Leandro Cruz wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I can&#39;t stop Netty by calling bootstrap.releaseExternalResources();<br>
&gt; I noticed that ExecutorUtil.terminate() isn&#39;t able to terminate one of my<br>
&gt; executors (the NIO server worker).<br>
&gt; How can I shutdown netty properly?<br>
&gt;<br>
&gt; --<br>
&gt; Leandro Rodrigo Saad Cruz<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; netty-users mailing list<br>
&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</blockquote></div><br></div></div>