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

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 13
    • core-libs

    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

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

              Dates

                Created:
                Updated: