javax/net/ssl/DTLS/Retransmission.java fails intermittently with Exception in ServerCallable.call():
Server: =======handshake(0, NEED_WRAP)=======
Server: ----produce handshake packet(99, OK, NEED_UNWRAP)----
Server: Produced 1 packets
Exception in ServerCallable.call():
java.lang.RuntimeException: Too much loops to produce handshake packets
at DTLSOverDatagram.handshake(DTLSOverDatagram.java:154)
at DTLSOverDatagram.doServerSide(DTLSOverDatagram.java:98)
at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:647)
at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:630)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:844)
Client: Warning: java.net.SocketTimeoutException: Receive timed out
Client: Reproduced 0 packets
Client: New handshake status is NEED_UNWRAP
Client: Handshake finished, status is NEED_UNWRAP
Client: Negotiated protocol is NONE
Client: Negotiated cipher suite is SSL_NULL_WITH_NULL_NULL
Exception in ClientCallable.call():
java.lang.Exception: Unexpected handshake status NEED_UNWRAP
at DTLSOverDatagram.handshake(DTLSOverDatagram.java:289)
at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:117)
at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:685)
at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:668)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:844)