Skip to content

Commit

Permalink
Fix dtls tests
Browse files Browse the repository at this point in the history
The dtls server process exits too early when the input
has an EOF condition.
  • Loading branch information
bernd-edlinger committed Jan 10, 2025
1 parent 9899ee7 commit bdf7175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/perl/TLSProxy/Proxy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,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;

Expand Down

0 comments on commit bdf7175

Please sign in to comment.