Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221487

Socket.setTrafficClass hides errors setting IP_TOS on a connected Socket, setOption does not

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:

      Description

      Changing the value of the IP_TOS or IPV6_TCLASS socket options on a TCP socket that is already connected is implementation specific, and in many cases doesn't really make sense. However, if attempted and the setting the options fails (it fails on Solaris) then the error is swallowed by Socket setTrafficClass(value) but is not swallowed by setOption(IP_TOS, value). This inconsistency surfaces when when PlainSocketImpl is replaced with an alternative implementation. The issue has been patched in the niosocketimpl-branch, and tracked here so that it can be examined on its own.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chegar Chris Hegarty
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: