JDK-8062744 : jdk.net.Sockets.setOption/getOption does not support IP_TOS
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7u79
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-11-03
  • Updated: 2021-03-22
  • Resolved: 2014-11-04
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 7 JDK 8 JDK 9
7u80Fixed 8u40Fixed 9 b39Fixed
Related Reports
Relates :  
Description
IP_TOS is missing from the list of supported options for ServerSocket

--- a/src/share/classes/jdk/net/Sockets.java
+++ b/src/share/classes/jdk/net/Sockets.java
@@ -371,6 +371,7 @@
         set = new HashSet<>();
         set.add(StandardSocketOptions.SO_RCVBUF);
         set.add(StandardSocketOptions.SO_REUSEADDR);
+        set.add(StandardSocketOptions.IP_TOS);
         set = Collections.unmodifiableSet(set);
         options.put(ServerSocket.class, set);