<br><div class="gmail_quote">On Sat, Mar 6, 2010 at 9:14 AM, infectedrhytms <span dir="ltr">&lt;<a href="mailto:infectedrhythms@hotmail.com">infectedrhythms@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I even took out everything and just put a Thread.sleep(500)<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Long-running-handlers-tp4677280p4684906.html" target="_blank">http://n2.nabble.com/Long-running-handlers-tp4677280p4684906.htm</a></font></blockquote><div><br>Hmm, here is what I think is going on (Trustin/others please correct me if I am wrong). The handler will process each request in sequence (due to OrderedMemoryAware...). Thats why each message is received and processed one after the other (each incurring a 500 ms delay that Thread.sleep is putting there).<br>
<br><br>This does not happen when you close the connection right after processing each request, because each connection will be handled by a different handler and thus a different Executor from the OrderedMemoryAware...<br>
<br><br>Thats all I can think of, as of now.<br><br>HTH,<br><br>Virat <br></div></div><br>