From 8e699a77f9173f3ebc264c3367d35b91402b6695 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 13 Jan 2013 15:38:35 +0000 Subject: [PATCH] Accept and highlight: Failed to shutdown socket 11: Connection reset by peer --- tools/privoxy-log-parser.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 07589fbc..3bece0e1 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.151 2012/12/24 15:53:26 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.152 2013/01/06 18:11:51 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1723,9 +1723,12 @@ sub handle_loglevel_connect ($) { $c =~ s@(?<=Drained )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; - } elsif ($c =~ m/^Tainting client socket/) { + } elsif ($c =~ m/^Tainting client socket/ or + $c =~ m/^Failed to shutdown socket/) { # Tainting client socket 7 due to unread data. + # Failed to shutdown socket 11: Connection reset by peer + $c =~ s@(?<=socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; } elsif ($c =~ m/^Shifting \d+ pipelined bytes/) { -- 2.39.2