RFR 8140472/9, java/net/ipv6tests/TcpTest.java failed intermittently with java.net.BindException: Address already in use

Chris Hegarty chris.hegarty at oracle.com
Wed Jan 6 05:49:40 UTC 2016


Hi Felix,

On 6 Jan 2016, at 05:09, Felix Yang <felix.yang at oracle.com> wrote:

> Hi all,
>    please review the fix for java/net/ipv6tests/TcpTest.java, which replaces hard-coded ports with dynamic free ports on runtime.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8140472
> Webrev: http://cr.openjdk.java.net/~xiaofeya/8140472/webrev.00

Ooh, I wasn’t aware that the getFreePort ( open and close a ServerSocket
on an ephemeral port quickly, then assume that that ephemeral port is
“available" ) was still in use. It has been shown to be unstable in other test
areas, namely rmi. I don’t think that we should use it here.
 
From my perspective I don’t see that the specific cases that use hard-coded
ports are all that useful. Maybe they should just be removed, if they are
causing problems.

-Chris.


More information about the net-dev mailing list