You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2014/09/05 13:03:29 UTC

[jira] [Updated] (DIRMINA-738) Using IoEventQueueThrottler with a WriteRequestFilter can lead to hangs

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

Emmanuel Lecharny updated DIRMINA-738:
--------------------------------------
    Fix Version/s: 2.0.8

> Using IoEventQueueThrottler  with a WriteRequestFilter can lead to hangs
> ------------------------------------------------------------------------
>
>                 Key: DIRMINA-738
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-738
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 2.0.0-M6
>            Reporter: Daniel John Debrunner
>             Fix For: 2.0.8
>
>
> The javadoc for WriteRequestFilter  shows an example using IoEventQueueThrottler  to throttle writes. First issue is that IoEventQueueThrottler  is not well documented, I'd assumed it was throttling number of messages, instead its threshold is number of bytes. Second issue is that if a message estimated length is less than the threshold then the write hangs, even with an async executor in the chain.
> Emmanuel Lécharny  also wrote:
>   FYI, the counter (threshold) is *never* decreased.
> To be frank, this is not a piece of code I know, but from what I see, it's *extremely* dubious that it does something useful, and most likely to block forever.
> I would suggest not to use this



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)