JDK-8235141 : Specify the required standard socket options for the socket types in the java.net package
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-29
  • Updated: 2024-11-04
  • Resolved: 2019-12-10
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 14
14 b27Fixed
Related Reports
Blocks :  
CSR :  
Duplicate :  
Relates :  
Description
The socket types in the java.net package do not specify the minimum set
of standard socket options that they are required to support. The set of
"supported" socket options can be retrieved programmatically, with the
supportedOptions() method, but this set may include non-standard socket
options as well as standard ones. To assert compliance checks then the
set of Java SE standard options that are required to be supported should
be explicitly documented in each of the socket types, similar to what is
done for the channels area, e.g. SocketChannel, etc.

For example:

"[[Server|Datagram|Multicast]Socket] supports the following options:

   SO_SNDBUF	The size of the socket send buffer
   SO_RCVBUF	The size of the socket receive buffer
   ...
   
Additional (implementation specific) options may also be supported."

Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/32d978ba562f User: dfuchs Date: 2019-12-10 13:24:30 +0000
10-12-2019