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

(doc) java.net.SocketOptions.SO_REUSEADDR description is not precise enough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6, 7, 8, 9
    • core-libs
    • None
    • generic
    • generic

      Decsription of SO_REUSEADDR is:
      Sets SO_REUSEADDR for a socket. This is used only for MulticastSockets in java, and it is set by default for MulticastSockets.
      Valid for: DatagramSocketImpl

      However, the java.net.ServerSocket class and the java.net.Socket (that are not DatagramSocketImpl) have non-trivial method setReuseAddress()

      It will be good to explain correlation between java.net.SocketOptions.SO_REUSEADDR and the original SO_REUSEADDR value. It seems that the original meaning of this option (setting this option allows to bind a socket to the same address multiple times) isn't applicable for java sockets.

            jpai Jaikiran Pai
            itseytin Igor Tseytin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: