projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d62c795
)
Accept and highlight: The client closed socket 2 while the server socket 4 is still...
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 12 Sep 2009 12:36:02 +0000
(12:36 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 12 Sep 2009 12:36:02 +0000
(12:36 +0000)
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
30da968
..
3abc97b
100755
(executable)
--- a/
tools/privoxy-log-parser.pl
+++ b/
tools/privoxy-log-parser.pl
@@
-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.4
6 2009/09/10 15:02:25
fabiankeil Exp $
+# $Id: privoxy-log-parser.pl,v 1.4
7 2009/09/10 15:03:20
fabiankeil 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
@@
-1611,6
+1611,12
@@
sub handle_loglevel_connect ($) {
$c =~ s@(?<=bytes to )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$c =~ s@(?<=for the )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$c =~ s@(?<=bytes to )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$c =~ s@(?<=for the )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+ } elsif ($c =~ m/^The client closed socket /) {
+
+ # The client closed socket 2 while the server socket 4 is still open.
+ $c =~ s@(?<=closed socket )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+ $c =~ s@(?<=server socket )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
} elsif ($c =~ m/^Looks like we rea/ or
$c =~ m/^Unsetting keep-alive flag/ or
$c =~ m/^No connections to wait/ or
} elsif ($c =~ m/^Looks like we rea/ or
$c =~ m/^Unsetting keep-alive flag/ or
$c =~ m/^No connections to wait/ or