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

NioProcessor's selector is synchronized but accessed outside

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.17
    • Component/s: None
    • Labels:
      None

      Description

      We synchronize on the selector field in NioProcessor, but this field is accessed without synchronization :

          protected void doDispose() throws Exception {
              selector.close();
          }
      

      and :

          protected boolean isBrokenConnection() throws IOException {
              // A flag set to true if we find a broken session
              boolean brokenSession = false;
      
              synchronized (selector) {
                  ...
      

      We should use another lock mechanism.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: