Mercurial > hg > icedtea7-forest > jdk
changeset 6247:30ce26df6899
8006560: java/net/ipv6tests/B6521014.java fails intermittently
Reviewed-by: khazra, wetmore
author | chegar |
---|---|
date | Sun, 20 Jan 2013 09:37:51 +0000 |
parents | 8d2b3ba77836 |
children | 1df65a451e1c |
files | test/java/net/ipv6tests/B6521014.java |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/java/net/ipv6tests/B6521014.java Sat Dec 29 11:00:15 2012 +0000 +++ b/test/java/net/ipv6tests/B6521014.java Sun Jan 20 09:37:51 2013 +0000 @@ -95,14 +95,12 @@ Socket sock; ServerSocket ssock; int port; - int localport; ssock = new ServerSocket(0); ssock.setSoTimeout(100); port = ssock.getLocalPort(); - localport = port + 1; sock = new Socket(); - sock.bind(new InetSocketAddress(sin, localport)); + sock.bind(new InetSocketAddress(sin, 0)); try { sock.connect(new InetSocketAddress(sin, port), 100); } catch (SocketTimeoutException e) {