Catch SIGPIPE in TLSProxy::Proxy::clientstart
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 13 Jan 2018 09:24:45 +0000 (10:24 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 13 Jan 2018 13:57:15 +0000 (14:57 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5071)

util/perl/TLSProxy/Proxy.pm

index 99b0dedd5beb9cc5938cc37460f8e6594e286702..cc21bd6ac94ad551a100ffb528b88a953b97e327 100644 (file)
@@ -294,6 +294,7 @@ sub clientstart
     #Wait for either the server socket or the client socket to become readable
     my @ready;
     my $ctr = 0;
+    local $SIG{PIPE} = "IGNORE";
     while(     (!(TLSProxy::Message->end)
                 || (defined $self->sessionfile()
                     && (-s $self->sessionfile()) == 0))