JDK-8221252 : (sc) SocketChannel and its socket adaptor need to handle connection reset
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-21
  • Updated: 2020-01-03
  • Resolved: 2019-03-22
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.
JDK 13
13 b14Fixed
Related Reports
Relates :  
Relates :  
Description
Socket.getInputStream() specifies how the the input stream read method behaves when a TCP connection is broken. The socket adaptor return by SocketChannel::Socket does not implement this on all platforms, instead it reflects the behavior of the underlying operating system.

As part of this change, the socket adaptor can implement the available() method.