current/tools privoxy-log-parser.pl,1.164,1.165

Fabian Keil <[email protected]> Fri, 24 Feb 2017 12:00:00 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current/tools
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18647/tools

Modified Files:
	privoxy-log-parser.pl 
Log Message:
privoxy-log-parser: Count connection timeouts as well in statistics mode

Sponsored by: Robert Klemme


Index: privoxy-log-parser.pl
===================================================================
RCS file: /cvsroot/ijbswa/current/tools/privoxy-log-parser.pl,v
retrieving revision 1.164
retrieving revision 1.165
diff -C2 -d -r1.164 -r1.165
*** privoxy-log-parser.pl	20 Feb 2017 15:57:40 -0000	1.164
--- privoxy-log-parser.pl	24 Feb 2017 11:59:58 -0000	1.165
***************
*** 2006,2009 ****
--- 2006,2013 ----
          # Blocked: blogger.googleusercontent.com:443
          $stats{'blocked'}++;
+ 
+     } elsif ($c =~ m/^Connection timeout:/) {
+         # Connection timeout: http://c.tile.openstreetmap.org/18/136116/87842.png
+         $stats{'connection-timeout'}++;
      }
  }
***************
*** 2150,2153 ****
--- 2154,2159 ----
      print "Fast redirections: " . $stats{'fast-redirections'} . " (" .
          get_percentage($stats{requests}, $stats{'fast-redirections'}) . ")\n";
+     print "Connection timeouts: " . $stats{'connection-timeout'} . " (" .
+         get_percentage($stats{requests}, $stats{'connection-timeout'}) . ")\n";
      print "Outgoing requests: " . $outgoing_requests . " (" .
          get_percentage($stats{requests}, $outgoing_requests) . ")\n";


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot