You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Martin Ritchie (JIRA)" <ji...@apache.org> on 2006/11/15 15:30:38 UTC

[jira] Updated: (DIRMINA-307) ReadThrottleFilterBuilder does not resume reading.

     [ http://issues.apache.org/jira/browse/DIRMINA-307?page=all ]

Martin Ritchie updated DIRMINA-307:
-----------------------------------

    Attachment: ReadThrottleFilterBuilder.patch

Here is the patch described in the bug

> ReadThrottleFilterBuilder does not resume reading.
> --------------------------------------------------
>
>                 Key: DIRMINA-307
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-307
>             Project: Directory MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.0
>            Reporter: Martin Ritchie
>            Priority: Blocker
>         Attachments: ReadThrottleFilterBuilder.patch
>
>
> The starvation problems being experienced by testing of the MultiThreadedSocketIOProcessor(DIRMINA-301) are related to this bug.
> When using multiple threads the the removeal of attribute SUSPENDED_READS is not done after resuming reads it is done on any and all calls to release.
> The session.removeAttribute( SUSPENDED_READS ); line should be moved inside the if statement.
> in method release:
>            if( counter < maximumConnectionBufferSize && isSuspendedReads( session ) )
>             {
>                 session.resumeRead();
>                 session.removeAttribute( SUSPENDED_READS );
>             }
> Patch is attached.
>   

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira