summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2025-01-10 08:45:20 +0100
committerTomas Mraz <tomas@openssl.org>2025-01-15 16:05:53 +0100
commit52bcf4f88be949ecedfc924bc8ef37cbed7f24fb (patch)
tree95f17b88035c6d16b435fd57408b171ae97564dd
parentRevert "Use open2 instead of open for s_server instance" (diff)
downloadopenssl-52bcf4f88be949ecedfc924bc8ef37cbed7f24fb.tar.xz
openssl-52bcf4f88be949ecedfc924bc8ef37cbed7f24fb.zip
Fix dtls tests
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)
-rw-r--r--util/perl/TLSProxy/Proxy.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm
index 784811fbad..ac40076da2 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;