JDK-8210362 : ServerSocket.supportedOptions returns options that aren't useful for listening sockets
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 12
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-09-04
  • Updated: 2019-08-14
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
Relates :  
Description
The extended socket option mechanism doesn't distinguish between socket options for connecting sockets vs. listening sockets. This means that ServerSocket's supportedOptions() returns socket options that aren't suitable for listening sockets. This should be examined to see if it's worth filtering the socket options so that listening sockets (ServerSocket and ServerSocketChannel) don't claim to support socket options that aren't suitable for listening sockets.
Comments
I think we should change the new SocketImpl to drop IP_TOS from the set of supported options that ServerSocket claims to support. A similar change was done to ServerSocketChannel via. JDK-8209152.
14-08-2019

IP_TOS in particular. Some, at time of writing, relatively recent activity, see JDK-8036681.
01-04-2019