RFR: 8048212 Two tests failed with "java.net.SocketException: Bad protocol option" on Windows after 8029607

Alan Bateman Alan.Bateman at oracle.com
Mon Jun 30 18:43:33 UTC 2014


On 30/06/2014 17:53, Michael McMahon wrote:
> Could I get the following change reviewed please?
>
> http://cr.openjdk.java.net/~michaelm/8048212/webrev.1/
>
> It fixes a problem caused by the fix for 8029607. The changes for
> that fix should not have been applied to Windows. So, this fix ensures
> that the IPv4 option is used always on Windows.
>
I don't know if Windows supports setting IP_TOS on an IPv6 socket but in 
any case, it might be simplest to just go back to the original behavior 
which was for this case to be a no-op. The spec allows for that.

-Alan


More information about the net-dev mailing list