Highlight: Client keep-alive timeout is 20. Sticking with 10.
authorFabian Keil <fk@fabiankeil.de>
Wed, 8 Jul 2009 17:26:46 +0000 (17:26 +0000)
committerFabian Keil <fk@fabiankeil.de>
Wed, 8 Jul 2009 17:26:46 +0000 (17:26 +0000)
tools/privoxy-log-parser.pl

index d685ef3..ffa4973 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.153 2009/06/30 19:05:08 fk Exp $
+# $Id: privoxy-log-parser.pl,v 1.154 2009/07/07 19:40:14 fk Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -995,9 +995,10 @@ sub handle_loglevel_header ($) {
         # XXX: Could highlight more here.
         $content =~ s@(?<=^Content-Type: )(.*)(?= not replaced)@$h{'content-type'}$1$h{'Standard'}@;
 
-    } elsif ($c =~ m/^Server keep-alive timeout is/) {
+    } elsif ($c =~ m/^(Server|Client) keep-alive timeout is/) {
 
        # Server keep-alive timeout is 5. Sticking with 10.
+       # Client keep-alive timeout is 20. Sticking with 10.
 
        $content =~ s@(?<=timeout is )(\d+)@$h{'Number'}$1$h{'Standard'}@;
        $content =~ s@(?<=Sticking with )(\d+)@$h{'Number'}$1$h{'Standard'}@;