Integrated: 8201778: Speed up test javax/net/ssl/DTLS/PacketLossRetransmission.java
Fernando Guallini
fguallini at openjdk.org
Thu Sep 11 14:32:17 UTC 2025
On Thu, 4 Sep 2025 12:52:31 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: fc3e3e26
Author: Fernando Guallini <fguallini at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fc3e3e26c515ae0f9ae32aec504974fba393928d
Stats: 34 lines in 2 files changed: 7 ins; 22 del; 5 mod
8201778: Speed up test javax/net/ssl/DTLS/PacketLossRetransmission.java
Reviewed-by: djelinski
-------------
PR: https://git.openjdk.org/jdk/pull/27093
More information about the security-dev
mailing list