RFR: 8201778: Speed up test javax/net/ssl/DTLS/PacketLossRetransmission.java

Fernando Guallini fguallini at openjdk.org
Fri Sep 5 08:33:24 UTC 2025


The test javax/net/ssl/DTLS/PacketLossRetransmission takes about 2 minutes to complete. The reason is that the server or client socket times out after 10 seconds while waiting to receive a DatagramPacket that has already been removed (to simulate packet loss). Given that it will time out, it is better to reduce its value.
After reducing the timeout , the total test execution completes in approximately 20 seconds on average.
Additionally, unnecessary scenarios are removed; for instance, when acting as a client, there is no "server_hello" message type to remove, and similarly, when acting as a server, there is no "client_hello" message on that side, so there is no corresponding packet loss to simulate.

-------------

Commit messages:
 - add back certificate_status in server side
 - renamed var
 - Shorter time out

Changes: https://git.openjdk.org/jdk/pull/27093/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27093&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8201778
  Stats: 23 lines in 2 files changed: 7 ins; 11 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/27093.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27093/head:pull/27093

PR: https://git.openjdk.org/jdk/pull/27093


More information about the security-dev mailing list