Hi Marc, On 7/29/07, maf <[EMAIL PROTECTED]> wrote: > > I am a newbie to MINA and ran into this issue while coding a test case for my > app: > > I am doing a write on a session and then doing a join() without timeout on > the resulting WriteFuture. An exception is thrown in the filterWrite method > of an I/O filter (in my test case I am actually using ProtocolCodecFilter > and the exception is thrown from my encoder). The test case results in the > join never returning, which hangs the containing thread. > > My expectation would be that the framework would set the WriteFuture to > return false for isWritten() since the attempt to write failed. I also > implemented an exceptionCaught() handler in the filter and had it close the > session on the theory that the close() might clean up any pending > WriteFuture instances associated with the session, but that did not change > the behavior of the join. > > The attached code (based on the netcat example) illustrates the behavior.
Thanks for the very detailed bug reporting. It could be prefect if you created a JIRA entry: http://issues.apache.org/jira/browse/DIRMINA Thanks, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
