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

NioProcessor's selector is synchronized but accessed outside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.16
    • 2.0.17
    • None
    • 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

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: