You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/07/31 08:15:53 UTC

[jira] Resolved: (DIRMINA-412) WriteFuture.join() hangs when exception thrown in filterWrite

     [ https://issues.apache.org/jira/browse/DIRMINA-412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved DIRMINA-412.
---------------------------------

    Resolution: Fixed

Fixed as following:

http://svn.apache.org/viewvc/mina/branches/1.1/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java?r1=560326&r2=561238&diff_format=h

> WriteFuture.join() hangs when exception thrown in filterWrite
> -------------------------------------------------------------
>
>                 Key: DIRMINA-412
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-412
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.0.4, 1.1.1
>         Environment: Windows XP
>            Reporter: Marc Friedman
>            Assignee: Trustin Lee
>             Fix For: 1.0.5, 1.1.2
>
>         Attachments: WhenWriteFails.java
>
>
> If an exception is thrown in the filterWrite() method of a filter then the processing of the write on the session is abandoned and an ExceptionCaught event is transmitted down the filter chain. However, the WriteFuture is returned normally from session.write() and the future is not notified of the write failure. As a result, a join() without timeout on the WriteFuture will cause the calling thread to hang. The attached code illustrates this behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.