From b5ce79b11f3159a17e6c519b1eb95b50d3fac350 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 22 Sep 2020 13:33:51 +0200 Subject: [PATCH] privoxy-log-parser: Highlight 'The client socket 16 has become unusable while the server socket 24 is still open.' --- tools/privoxy-log-parser.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 77296267..dce3b315 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -1783,6 +1783,12 @@ sub handle_loglevel_connect($) { # Dropping the client connection on socket 71. The server connection has not been established yet. $c =~ s@(?<=on socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^The client socket \d+ has become unusable while the server/) { + + # The client socket 16 has become unusable while the server socket 24 is still open. + $c =~ s@(?<=client socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=server socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we / or $c =~ m/^Unsetting keep-alive flag/ or $c =~ m/^No connections to wait/ or -- 2.39.2