hg: jdk/sandbox: 8233296: MulticastSocket getOption/setOption inverts the value of IP_MULTICAST_LOOP
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Fri Nov 22 12:00:17 UTC 2019
Changeset: 55fdee124e89
Author: dfuchs
Date: 2019-11-22 11:52 +0000
URL: https://hg.openjdk.java.net/jdk/sandbox/rev/55fdee124e89
8233296: MulticastSocket getOption/setOption inverts the value of IP_MULTICAST_LOOP
Summary: MulticastSocket.getOption(StandardSocketOption.IP_MULTICAST_LOOP) now returns true if loopback mode is enabled, and MulticastSocket.setOption(StandardSocketOption.IP_MULTICAST_LOOP, true) enables loopback mode. No other behavioral changes.
Reviewed-by: alanb, chegar
! src/java.base/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
+ test/jdk/java/net/MulticastSocket/SetLoopbackOption.java
! test/jdk/java/net/SocketOption/OptionsTest.java
More information about the jdk-sandbox-changes
mailing list