On Jun 5, 2008, at 11:02 AM, Johny Kadarisman wrote:
In my client implementation, I set manual threading model, and insertexecutorFilter() in my socketConnector config. On certain condition, in my handler, I will block in 'ArrayBlockingQueue'. during this situation, I don't see IoProcessor creating a new handler thread to process a new message coming from server. I can see the processor receive the new message comingfrom server on LoggingFilter.If the blocking code is commented out, the new handler thread will becreated. Is IoHandler should only run on one thread? Did I do somethingwrong?
Is this all on the same connection?The standard way an ExecutorFilter works is to process all data for a given connection in order. So if you block in the IOHandler after the ExecutorFilter for a given connection, you won't see subsequent messages processed until the previous message is complete. Make sense?
-pete -- (peter.royal|osi)@pobox.com - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
