From: Fabian Keil Date: Fri, 27 Jul 2012 17:42:39 +0000 (+0000) Subject: Accept and highlight: Closing client socket 5. Keep-alive: 0, Socket alive: 1. Data... X-Git-Tag: v_3_0_20~288 X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/@default-cgi@show-url-info?a=commitdiff_plain;h=6570fdc5da48e856f167e92df78104dc1943e442;p=privoxy.git Accept and highlight: Closing client socket 5. Keep-alive: 0, Socket alive: 1. Data available: 0 --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 284e6f9e..e61eb93c 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.134 2012/07/27 17:37:22 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.135 2012/07/27 17:40:31 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1432,6 +1432,14 @@ sub handle_loglevel_connect ($) { return '' if SUPPRESS_ACCEPTED_CONNECTIONS; $c = highlight_matched_host($c, '(?<=connection from ).*'); + } elsif ($c =~ m/^Closing client socket/) { + + # Closing client socket 5. Keep-alive: 0, Socket alive: 1. Data available: 0. + $c = highlight_matched_pattern($c, 'Number', '(?<=socket )\d+'); + $c = highlight_matched_pattern($c, 'Number', '(?<=Keep-alive: )\d+'); + $c = highlight_matched_pattern($c, 'Number', '(?<=Socket alive: )\d+'); + $c = highlight_matched_pattern($c, 'Number', '(?<=available: )\d+'); + } elsif ($c =~ m/^write header to: .* failed:/) { # write header to: 10.0.0.1 failed: Broken pipe