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

Fernando Guallini fguallini at openjdk.org
Fri Sep 5 10:34:34 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 15 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. It should keep only the scenarios that do lose messages.

Fernando Guallini has updated the pull request incrementally with one additional commit since the last revision:

  removal of useless tests

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27093/files
  - new: https://git.openjdk.org/jdk/pull/27093/files/0f41e62c..136c9dc6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27093&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27093&range=00-01

  Stats: 11 lines in 1 file changed: 0 ins; 11 del; 0 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