JDK-8207045 : (se) Document that closing a SelectableChannel registered with Selector delays release until flushed from all Selectors
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-07-11
  • Updated: 2022-06-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
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.