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

Add support for SO_REUSEPORT

    XMLWordPrintable

Details

    • b108
    • sparc
    • solaris_10

    Description

      A DESCRIPTION OF THE REQUEST :
      There is no way to access the SO_REUSEPORT socket option in the JDK. The addition of a setReusePort() and getReusePort() function equivalent to setReuseAddress() and getReuseAddress() would fill this gap.

      Alternatively, a more generic way of setting and querying individual socket options would suffice.

      JUSTIFICATION :
      Quite a lot of peer to peer systems are now making use of this flag in order to avoid having to configure many ports on network address translators. With this flag, both outgoing and incoming connections can be bound to the same port and consequently remain bound to the same external port of the NAT.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Add setReusePort() and getReusePort() to the JDK.
      ACTUAL -
      Not applicable.

      ---------- BEGIN SOURCE ----------
      Not applicable.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Not applicable.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: