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

Specify the required standard socket options for the socket types in the java.net package

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 13, 14
    • Fix Version/s: 14
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b27

      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."

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                chegar Chris Hegarty
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: