From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 16 Oct 2023 19:10:31 +0000 (+0200)
Subject: privoxy-log-parser: Highlight 'Failed to accept() incoming connection: Software cause... 
X-Git-Tag: v_4_0_0~134
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/user-manual/@default-cgi@toggle?a=commitdiff_plain;h=60ebcd7e58c8b9cae9ccf8ae522327b7591fdd78;p=privoxy.git

privoxy-log-parser: Highlight 'Failed to accept() incoming connection: Software caused connection abort'
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index c58726c2..b76899dd 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -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'