From: Fabian Keil Date: Sat, 6 Dec 2008 16:19:18 +0000 (+0000) Subject: Highlight: X-Git-Tag: v_3_0_11~139 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=45fc36c8ac25678703fcd5b3174ff50a72b97dff Highlight: Connect: Received 206 bytes while expecting 12103. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index c2b76a7b..f92da08c 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.127 2008/12/06 11:29:58 fk Exp $ +# $Id: privoxy-log-parser.pl,v 1.128 2008/12/06 16:18:41 fk Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1489,6 +1489,12 @@ sub handle_loglevel_connect ($) { $c =~ s@(?<=header_offset: )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=len: )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Received \d+ bytes while/) { + + # Received 206 bytes while expecting 12103. + $c =~ s@(?<=Received )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=expecting )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we rea/ or $c =~ m/^Unsetting keep-alive flag/) {