From: Bernd Edlinger Date: Fri, 10 Jan 2025 07:45:20 +0000 (+0100) Subject: Fix dtls tests X-Git-Tag: openssl-3.5.0-alpha1~735 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52bcf4f88be949ecedfc924bc8ef37cbed7f24fb;p=thirdparty%2Fopenssl.git Fix dtls tests The dtls server process exits too early when the input has an EOF condition. Reviewed-by: Frederik Wedel-Heinen Reviewed-by: Saša Nedvědický Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/26374) --- diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm index 784811fbad2..ac40076da23 100644 --- a/util/perl/TLSProxy/Proxy.pm +++ b/util/perl/TLSProxy/Proxy.pm @@ -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;