From 6d016c7cefab6faf3f8d21a964a0cd45647d36d4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 15 Feb 2021 18:21:25 +0100 Subject: [PATCH] privoxy-log-parser: Higlight 'Dropping the client connection on socket 23 with server socket 24 connected to www.reddit.com. The forwarder has changed.' --- tools/privoxy-log-parser.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 482edf9a..e7f29c62 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -1863,7 +1863,11 @@ sub handle_loglevel_connect($) { } elsif ($c =~ m/^Dropping the client connection on socket/) { # Dropping the client connection on socket 71. The server connection has not been established yet. + # Dropping the client connection on socket 23 with server socket 24 connected to \ + # www.reddit.com. The forwarder has changed. $c =~ s@(?<=on socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=server socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c = highlight_matched_host($c, '(?<=connected to )[^ ]+(?=\.)'); } elsif ($c =~ m/^The client socket \d+ has become unusable while the server/) { -- 2.39.2