From 8b4721b8736db6972135444a32fb27a09dda81b9 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 10 Jan 2025 08:45:20 +0100 Subject: [PATCH] Fix dtls tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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) (cherry picked from commit 52bcf4f88be949ecedfc924bc8ef37cbed7f24fb) --- util/perl/TLSProxy/Proxy.pm | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2