Skip to content

Commit

Permalink
Adds additional logs to TLSProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Jan 18, 2024
1 parent 3aa8e9a commit 89064b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion util/perl/TLSProxy/Proxy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ sub start
# Connect right away...
$self->connect_to_server();

print STDERR "Proxy connected to server\n";

return $self->clientstart;
}

Expand Down Expand Up @@ -395,6 +397,7 @@ sub clientstart
print STDERR "Client command: $execcmd\n";
}

print STDERR "Starting s_client\n";
open(my $savedout, ">&STDOUT");
# If we open pipe with new descriptor, attempt to close it,
# explicitly or implicitly, would incur waitpid and effectively
Expand All @@ -404,10 +407,13 @@ sub clientstart
kill(3, $self->{real_serverpid});
die "Failed to $execcmd: $err\n";
}
print STDERR "s_client started\n";
$self->{clientpid} = $pid;

# queue [magic] input
print $self->reneg ? "R" : "test";
my $client_input = $self->reneg ? "R" : "test";
print STDERR "Queueing s_client input:'$client_input'\n";
print $client_input;

# this closes client's stdin without waiting for its pid
open(STDOUT, ">&", $savedout);
Expand Down

0 comments on commit 89064b3

Please sign in to comment.