]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Give DTLS tests more time to complete
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 21 Jan 2025 15:12:18 +0000 (16:12 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Jan 2025 11:01:57 +0000 (12:01 +0100)
Increase the timeout for DTLS tests to 10 seconds.
But do that only for DTLS as this would waste time
for other tests, most of the TLS tests do not need
this at all.

Fixes #26491

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26502)

(cherry picked from commit b999ea6bc43ef6c53d464f364b7799ac9049ddd9)

util/perl/TLSProxy/Proxy.pm

index ac40076da235c54233239b850990cd4fcc19d280..709ccebd0c4d00dfe73b352aae541b4504cab450 100644 (file)
@@ -293,7 +293,7 @@ sub start
     open(my $savedin, "<&STDIN");
 
     # Temporarily replace STDIN so that sink process can inherit it...
-    open(STDIN, "$^X -e 'sleep(1)' |");
+    open(STDIN, "$^X -e 'sleep(10)' |") if $self->{isdtls};
     $pid = open(STDIN, "$execcmd 2>&1 |") or die "Failed to $execcmd: $!\n";
     $self->{real_serverpid} = $pid;