]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix dtls tests
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 10 Jan 2025 07:45:20 +0000 (08:45 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 15 Jan 2025 15:05:53 +0000 (16:05 +0100)
The dtls server process exits too early when the input
has an EOF condition.

Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26374)

util/perl/TLSProxy/Proxy.pm

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