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

MulticastSocket getOption/setOption inverts the value of IP_MULTICAST_LOOP

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b25
    • Verification:
      Verified

      Backports

        Description

        MulticastSocket has two ways to report whether loopback of multicast datagrams is enabled or disabled:

        1. Legacy getLoopbackMode(), should return true when loopback is disabled.

        2. getOption(IP_MULTICAST_LOOP), should return true when loopback is enabled.

        We seem to have a bug with #2 in that it returns true when the loopback is disabled. These methods should always return the inverse of one another.

        The setOption/getOption methods are @since 9 so the compatibility impact of fixing this is probably low.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dfuchs Daniel Fuchs
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: