<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>I'm not sure this is directly relevant, but you have to share a HashedWheelTimer instance among all connections because creating a single timer instance will also create a single Thread instance.&nbsp; Please refer to the JavaDoc of HashedWheelTimer, fix the code, and let me know your observation.<BR>
<BR>
HTH<BR>
<BR>
fatzopilot wrote:<BR>
&gt; Hi Trustin,<BR>
&gt;<BR>
&gt;<BR>
&gt; Trustin Lee wrote:<BR>
&gt;&gt; Perhaps you could insert the timeout handler *before* the port<BR>
&gt;&gt; unification handler? Would it fix the problem?<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt; This saves the dummy handler, but the<BR>
&gt; org.jboss.netty.handler.timeout.ReadTimeoutException is still "thrown".<BR>
&gt; I additionally tried to just catch it and put it into the upstream in order<BR>
&gt; to be processed by some handler that implements execptionCaught. I.e. like<BR>
&gt; this:<BR>
&gt;<BR>
&gt; try {<BR>
&gt;&nbsp;&nbsp;&nbsp; pipeline.addLast("readTimeout", new ReadTimeoutHandler(new<BR>
&gt; HashedWheelTimer(), 1,TimeUnit.MINUTES));<BR>
&gt;&nbsp;&nbsp;&nbsp; pipeline.addLast("writeTimeout", new WriteTimeoutHandler(new<BR>
&gt; HashedWheelTimer(), 1,TimeUnit.MINUTES));<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; } catch (Exception e) {<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Channels.fireExceptionCaught(ctx.getChannel(), e);<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
&gt; However, the exeption was not catched, so I presume it is not really thrown<BR>
&gt; but catched before and just printed. But I am unsure about this. I did not<BR>
&gt; experience "uncatchable" Exceptions before...<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/PortUnificationServerHandler-and-Read-WriteTimeoutHandlers-tp6947674p6950052.html<BR>
&gt; Sent from the Netty User Group mailing list archive at Nabble.com.<BR>
&gt; _______________________________________________<BR>
&gt; netty-users mailing list<BR>
&gt; netty-users@lists.jboss.org<BR>
&gt; https://lists.jboss.org/mailman/listinfo/netty-users</BODY></HTML>