Accept and ignore "Connect: Unsetting keep-alive flag.".
authorFabian Keil <fk@fabiankeil.de>
Mon, 3 Nov 2008 16:31:56 +0000 (16:31 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 3 Nov 2008 16:31:56 +0000 (16:31 +0000)
tools/privoxy-log-parser.pl

index f1a776b..aa70abb 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.118 2008/11/01 14:10:53 fk Exp $
+# $Id: privoxy-log-parser.pl,v 1.119 2008/11/03 16:30:50 fk Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -1473,9 +1473,11 @@ sub handle_loglevel_connect ($) {
         $c =~ s@(?<=Actual content length: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=received: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
         $c =~ s@(?<=Actual content length: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
         $c =~ s@(?<=received: )(\d+)@$h{'Number'}$1$h{'Standard'}@;
 
-    } elsif ($c =~ m/^Looks like we reached/) {
+    } elsif ($c =~ m/^Looks like we reached/ or
+             $c =~ m/^Unsetting keep-alive flag/) {
 
         # Looks like we reached the end of the last chunk. We better stop reading.
 
         # Looks like we reached the end of the last chunk. We better stop reading.
+        # Unsetting keep-alive flag.
 
     } else {
 
 
     } else {