Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-307

ReadThrottleFilterBuilder does not resume reading.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Filter
    • None

    Description

      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.

      Attachments

        1. ReadThrottleFilterBuilder.patch
          0.5 kB
          Martin Ritchie

        Activity

          People

            trustin Trustin Lee
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: