JDK-8168372 : java/net/Socket/InheritTimeout.java fails intermittently due to SocketTimeoutException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9,11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-10-20
  • Updated: 2019-08-26
  • Resolved: 2019-08-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Description
java/net/Socket/InheritTimeout.java fails intermittently, very rare though.

----------System.err:(17/1101)----------
java.net.SocketTimeoutException: Accept timed out
	at java.net.PlainSocketImpl.socketAccept(java.base@9-ea/Native Method)
	at java.net.AbstractPlainSocketImpl.accept(java.base@9-ea/AbstractPlainSocketImpl.java:459)
	at java.net.ServerSocket.implAccept(java.base@9-ea/ServerSocket.java:551)
	at java.net.ServerSocket.accept(java.base@9-ea/ServerSocket.java:519)
	at InheritTimeout.<init>(InheritTimeout.java:67)
	at InheritTimeout.main(InheritTimeout.java:93)
	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)

JavaTest Message: Test threw exception: java.net.SocketTimeoutException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.net.SocketTimeoutException: Accept timed out
Comments
This should have been fixed as part of JDK-8226756. Please reopen if the same failure is observed again in a repo that has JDK-8226756.
26-08-2019