thank you very much, trustin, I found my fault in the code. <div><br></div><div>In my DownStreamExecutionHandler, I forgot to use the new Runnable Class.</div><div><div><br></div><br><div class="gmail_quote">On Wed, Mar 24, 2010 at 2:39 PM, &quot;Trustin Lee (이희승)&quot; <span dir="ltr">&lt;<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div class="im"><br>
李巍 wrote:<br>
&gt; Dear netty users<br>
&gt;<br>
&gt;     Netty is supposed to support SEDA (Staged Event-Driven Architecture),<br>
&gt; but in org.jboss.netty.handler.execution.ExecutionHandler, the executor is<br>
&gt; only used in handleUpstream(), what about handleDownstream()? If I want to<br>
&gt; only put the encoding logic in another thread pool, how to deal with that?<br>
&gt; If I remember correctly, Mina support this.<br>
<br>
</div>I doubt it will improve performance significantly, and that&#39;s why I<br>
didn&#39;t put such feature to Netty.  If you really want to do that, you could:<br>
<br>
  1) Copy ChannelEventRunnable and modify run() method to call<br>
ctx.sendDownstream() instead of sendUpstream().<br>
  2) Call executor.execute(new ChannelEventRunnable2(evt)) in<br>
handleDownstream():<br>
<br>
    public void handleDownstream(ctx, e) {<br>
        executor.execute(new ChannelEventRunnable2(evt));<br>
    }<br>
<br>
HTH,<br>
Trustin<br>
<font color="#888888"><br>
--<br>
what we call human nature in actuality is human habit<br>
<a href="http://gleamynode.net/" target="_blank">http://gleamynode.net/</a><br>
<br>
<br>
</font><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>