JDK-8268899 : javax/net/ssl/DTLS/ClientAuth.java failed with "SocketTimeoutException: Receive timed out"
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 18
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-06-16
  • Updated: 2022-12-14
  • Resolved: 2022-12-14
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.
JDK 20
20Resolved
Related Reports
Duplicate :  
Description
The following test failed in the JDK18 CI:

javax/net/ssl/DTLS/ClientAuth.java

Here's a snippet from the log file:

Server: SSLEngineResult status OK
Exception in ClientCallable.call():
java.net.SocketTimeoutException: Receive timed out
	at java.base/sun.nio.ch.DatagramChannelImpl.trustedBlockingReceive(DatagramChannelImpl.java:703)
	at java.base/sun.nio.ch.DatagramChannelImpl.blockingReceive(DatagramChannelImpl.java:633)
	at java.base/sun.nio.ch.DatagramSocketAdaptor.receive(DatagramSocketAdaptor.java:240)
	at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:700)
	at DTLSOverDatagram.receiveAppData(DTLSOverDatagram.java:325)
	at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:126)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:617)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:611)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Exception on client side: 
java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: Receive timed out
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
	at DTLSOverDatagram.runTest(DTLSOverDatagram.java:560)
	at ClientAuth.main(ClientAuth.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.SocketTimeoutException: Receive timed out
	at java.base/sun.nio.ch.DatagramChannelImpl.trustedBlockingReceive(DatagramChannelImpl.java:703)
	at java.base/sun.nio.ch.DatagramChannelImpl.blockingReceive(DatagramChannelImpl.java:633)
	at java.base/sun.nio.ch.DatagramSocketAdaptor.receive(DatagramSocketAdaptor.java:240)
	at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:700)
	at DTLSOverDatagram.receiveAppData(DTLSOverDatagram.java:325)
	at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:126)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:617)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:611)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	... 1 more
Client finished: Well done, server!
----------System.err:(14/839)----------
java.lang.RuntimeException: Test failed
	at DTLSOverDatagram.runTest(DTLSOverDatagram.java:579)
	at ClientAuth.main(ClientAuth.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed
Comments
The template is updated with JDK-8297798 and we are not able to reproduce this failure so closing it as duplicate of JDK-8297798.
14-12-2022