Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-57

NioSocketChannelImpl suspendWrites method suspends reads instead of writes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.2.0.CR1
    • Component/s: nio-impl
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      Looks like a simple copy/paste (from suspendReads) bug.

      public void suspendWrites() {
      try

      { readHandle.suspend(); // <--Doh! }

      catch (CancelledKeyException ex)

      { // ignore }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                RobHadfield Robert Hadfield
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified