JDK-8269887 : javax/net/ssl/DTLS/PacketLossRetransmission.java failed: SocketTimeoutException: Receive timed out
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: aarch64
  • Submitted: 2021-07-06
  • 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.
Other
tbdResolved
Related Reports
Duplicate :  
Description
Client: Handshake finished, status is NEED_UNWRAP_AGAIN
Exception in ClientCallable.call():
java.lang.Exception: Handshake finished, but handshake session is not null
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:253)
	at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:120)
	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.lang.Exception: Handshake finished, but handshake session is not null
	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 PacketLossRetransmission.main(PacketLossRetransmission.java:90)
	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.lang.Exception: Handshake finished, but handshake session is not null
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:253)
	at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:120)
	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
Exception on server 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:570)
	at PacketLossRetransmission.main(PacketLossRetransmission.java:90)
	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.doServerSide(DTLSOverDatagram.java:103)
	at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:590)
	at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:584)
	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
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

Failure is reported for following test scenario and seems intermittent. run main/othervm PacketLossRetransmission server 15 certificate_verify
19-07-2021