mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edouard De Oliveira (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRMINA-632) WriteFuture.awaitUninterruptibly() or .join() hangs if write() throws Exceptions
Date Mon, 22 Jun 2009 17:56:07 GMT

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

Edouard De Oliveira resolved DIRMINA-632.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.0-RC1)
                   2.0.0-M7

Fixed and added a simpler non regression junit test

> WriteFuture.awaitUninterruptibly() or .join() hangs if write() throws Exceptions
> --------------------------------------------------------------------------------
>
>                 Key: DIRMINA-632
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-632
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10, 1.1.7, 2.0.0-M3
>            Reporter: Barrie Treloar
>            Assignee: Edouard De Oliveira
>             Fix For: 2.0.0-M7
>
>         Attachments: mina-1.1-handle-write-exceptions-with-test.txt, mina-2.0-handle-write-exceptions-test.txt,
mina-2.0-handle-write-exceptions.txt, mina-2.0-memory_monitor-withExceptionNotifier.txt, mina-2.0-memory_monitor.txt
>
>
> This is best shown with UDP since TCP will cause a close session to occur.
> If channel.write() throws an exception, e.g. the host becomes unreachable because of
network connection is removed, then WriteFuture.awaitUninterruptibly() will hang - as it will
never have setWritten(false) or setException() called.
> I have modified the MemoryMonitor example to show this happening.
> You must manually pull your network cable (or disable your Network Adapter) while the
client is running to see this happen.

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


Mime
View raw message