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

XMLWordPrintable

    • b27

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

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

              Created:
              Updated:
              Resolved: