mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-21 07:45:11 +00:00
8006560: java/net/ipv6tests/B6521014.java fails intermittently
Reviewed-by: khazra, wetmore
This commit is contained in:
parent
69757a1c92
commit
6b32c387f1
@ -95,14 +95,12 @@ public class B6521014 {
|
||||
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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user