[
https://issues.apache.org/jira/browse/DIRMINA-1041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15599343#comment-15599343
]
Emmanuel Lecharny commented on DIRMINA-1041:
--------------------------------------------
I think I have found a potential cause for the hang up : the
{{DefaultWriteRequestQueue}} inner class in
{{DefaultIoSessionDataStructureFactory}}, which was using a
{{ConcurrentLinkedQueue}} instance, is also declaring some of its method
{{synchronized}}, which does not make sense.
> WriteFuture.await() hangs when the connection is closed remotely before await
> is invoked
> ----------------------------------------------------------------------------------------
>
> Key: DIRMINA-1041
> URL: https://issues.apache.org/jira/browse/DIRMINA-1041
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.13
> Reporter: Gijsbert van den Brink
> Attachments: DIRMINA1041Test.java
>
>
> When in a high throughput scenario a TCP connection is closed remotely before
> one of the `await` methods on WriteFuture is invoked, the `await` method
> hangs.
> We've actually been seeing this issue for quite some time in our production
> environment in an application that uses Apache Camel with the camel-mina2 and
> camel-hl7 components. I was finally able to reproduce the issue in a unit
> test (see attached).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)