X-Git-Url: http://www.privoxy.org/gitweb/show-status?a=blobdiff_plain;f=tools%2Fprivoxy-log-parser.pl;h=ae18c57eafd6998cf980138c5dea47b0eea15a15;hb=23dcf9be0e91645fe420fdf0c699f99d457d3fc9;hp=c58726c269c56bbd3ff92c7df784b6984d3f2d62;hpb=87481f59493b19c95bd7dd4664dc4bc8408dc602;p=privoxy.git diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index c58726c2..ae18c57e 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -23,7 +23,7 @@ # hash key as input. # - Add --compress and --decompress options. # -# Copyright (c) 2007-2022 Fabian Keil +# Copyright (c) 2007-2024 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 @@ -1574,6 +1574,11 @@ sub handle_loglevel_connect($) { $c =~ s@(?<=accept failed: )(.*)@$h{'Error'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Failed to accept\(\) incoming connection:/) { + + # Failed to accept() incoming connection: Software caused connection abort + $c =~ s@(?<=connection: )(.*)@$h{'Error'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Overriding forwarding settings/) { # Overriding forwarding settings based on 'forward 10.0.0.1:8123' @@ -1959,6 +1964,23 @@ sub handle_loglevel_connect($) { $c =~ s@(?<=connected over )(TLSv\d\.\d)@$h{'tls-version'}$1$h{'Standard'}@; $c =~ s@(?<=\()([^)]+)@$h{'cipher-suite'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Couldn't deliver the error message for/) { + + # Couldn't deliver the error message for https://m.media-amazon.com/[...] through client socket 18 using TLS/SSL + $c = highlight_matched_url($c, "(?<=error message for )[^ ]*"); + $c =~ s@(?<=client socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + + } elsif ($c =~ m/^Keeping chunk offset at/) { + + # Keeping chunk offset at 0 despite flushing 31 bytes. + $c =~ s@(?<=offset at )(\d+)@$h{'Number'}$1$h{'Standard'}@; + $c =~ s@(?<=flushing )(\d+)@$h{'Number'}$1$h{'Standard'}@; + + } elsif ($c =~ m/^Not shutting down client connection on/) { + + # Not shutting down client connection on socket 8. The socket is no longer alive. + $c =~ s@(?<=socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Looks like we / or $c =~ m/^Unsetting keep-alive flag/ or $c =~ m/^No connections to wait/ or