From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 1 Apr 2024 11:31:20 +0000 (+0200)
Subject: privoxy-log-parser: Highlight 'Not shutting down client connection on socket 8. The... 
X-Git-Tag: v_4_0_0~65
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/developer-manual/man-page/@default-cgi@send-stylesheet?a=commitdiff_plain;h=30cb9a4ab4e11889f7416f4b15b3f74950b96f07;p=privoxy.git

privoxy-log-parser: Highlight 'Not shutting down client connection on socket 8. The socket is no longer alive.'
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 6dc5450a..ae18c57e 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1976,6 +1976,11 @@ sub handle_loglevel_connect($) {
         $c =~ s@(?<=offset at )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=flushing )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
+    } elsif ($c =~ m/^Not shutting down client connection on/) {
+
+        # Not shutting down client connection on socket 8. The socket is no longer alive.
+        $c =~ s@(?<=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