X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=d2e1645b5b4f8864da256bf2cab95e56a631feab;hp=1acdcc9106a7e9185aab3ba66c3a772cd297b7c1;hb=2c8cc588b08f0876e8cdf985cf192ecd58233d6c;hpb=6608b2b05edd3f6ea2832bb76be5fccc025914e0 diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 1acdcc91..d2e1645b 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.145 2012/12/07 12:46:04 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.148 2012/12/20 17:03:10 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -25,7 +25,7 @@ # hash key as input. # - Add --compress and --decompress options. # -# Copyright (c) 2007-2010 Fabian Keil +# Copyright (c) 2007-2012 Fabian Keil # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -1648,7 +1648,7 @@ sub handle_loglevel_connect ($) { } elsif ($c =~ m/^Waiting for the next client request/ or $c =~ m/^The connection on server socket/ or - $c =~ m/^Client request (?:\d+ )?arrived in time /) { + $c =~ m/^Client request (?:\d+ )?(?:arrived in time|has been pipelined) /) { # Waiting for the next client request on socket 3. Keeping the server \ # socket 12 to a.fsdn.com open. @@ -1659,6 +1659,7 @@ sub handle_loglevel_connect ($) { # Client request arrived in time on socket 21. # Used by earlier version: # Client request arrived in time or the client closed the connection on socket 12. + # Client request 8 has been pipelined on socket 7 and the socket is still alive. $c =~ s@(?<=request )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c =~ s@(?<=on socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; @@ -1739,6 +1740,7 @@ sub handle_loglevel_connect ($) { $c =~ m/^The server still wants to talk, but the client hung up on us./ or $c =~ m/^The server didn't specify how long the connection will stay open/ or $c =~ m/^There might be a request body. The connection will not be kept alive/ or + $c =~ m/^There better be a request body./ or $c =~ m/^Done reading from the client\.$/) { # Looks like we reached the end of the last chunk. We better stop reading. @@ -1756,7 +1758,9 @@ sub handle_loglevel_connect ($) { # The server still wants to talk, but the client hung up on us. # The server didn't specify how long the connection will stay open. Assume it's only a second. # There might be a request body. The connection will not be kept alive. - # Done reading from the client\. + # Privoxy 3.0.20 and later + # There better be a request body. + # Done reading from the client. } else {