RFR:JDK-7102702 - java/net/PortUnreachableException/OneExceptionOnly.java failing

Mark Sheppard mark.sheppard at oracle.com
Wed Dec 18 07:09:47 PST 2013


Hi,
    please oblige and review the following changes

http://cr.openjdk.java.net/~msheppar/7102702/webrev/

to address the issue

https://bugs.openjdk.java.net/browse/JDK-7102702

This test fails on windows, and it was found to be failing with
an error WSAEFAULT (10014),  when invoking a recvfrom() in the
purgeOutstandingICMP function  (in 
src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c).
This is indicative of a problem with the from address structure passed 
to the recvfrom().
Changing the
struct sockaddr_in to SOCKETADDRESS rectifies the issue i.e the
purgeOutstandingICMP will "swallow" the ICMP message event notifications,
manifested as an WSAECONNRESET error for a recvfrom() invocation.

  The test will pass as expected.

regards
Mark



More information about the net-dev mailing list