Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8207045

(se) Closing a SelectableChannel that is registered with Selector delays release under flush from all Selectors

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Closing a SocketChannel that is registered with one or more Selectors will delay closing the underlying connection/file descriptor until the SocketChannel has been flushed from all Selectors. This can be confusing in environments where there aren't any selection operations going on or a selection operation never wakes to process its cancelled key set.

      An `@implNote` may be useful in the Selector or SelectableChannel javadoc to make developers aware of this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: