-
Bug
-
Resolution: Fixed
-
P4
-
9
java/net/Socket/SocksConnectTimeout.java
Test fails intermittently with: java.net.SocketException: connect timed out
Test wrapped the exception (see line 82 and 124), no exception stack trace printed, which is not good.
Test expects to get SocketTimeoutException via connectWithTimeout:
static void connectWithTimeout(Socket socket) throws IOException {
socket.connect(new InetSocketAddress(InetAddress.getLocalHost(), 1234), 500);
}
this might not work well (as expected) when other tests run in concurrency.
Failure log:
----------System.out:(2/72)----------
Connect timeout test failed
java.net.SocketException: connect timed out
----------System.err:(12/755)----------
java.lang.RuntimeException: Test Failed: passed:0, failed:1
at SocksConnectTimeout.main(SocksConnectTimeout.java:67)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
Test fails intermittently with: java.net.SocketException: connect timed out
Test wrapped the exception (see line 82 and 124), no exception stack trace printed, which is not good.
Test expects to get SocketTimeoutException via connectWithTimeout:
static void connectWithTimeout(Socket socket) throws IOException {
socket.connect(new InetSocketAddress(InetAddress.getLocalHost(), 1234), 500);
}
this might not work well (as expected) when other tests run in concurrency.
Failure log:
----------System.out:(2/72)----------
Connect timeout test failed
java.net.SocketException: connect timed out
----------System.err:(12/755)----------
java.lang.RuntimeException: Test Failed: passed:0, failed:1
at SocksConnectTimeout.main(SocksConnectTimeout.java:67)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
- duplicates
-
JDK-8225430 Replace wildcard address with loopback or local host in tests - part 14
-
- Resolved
-