From d619d49243eef019bcd6fb9f88ac6d86e14dc4c3 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 18 Jan 2021 15:01:55 +0100
Subject: [PATCH] privoxy-log-parser: Highlight 'Sending data on socket 33 over
 TLS/SSL failed: no TLS/SSL errors detected'

---
 tools/privoxy-log-parser.pl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 02a38cd8..c0b77905 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -2072,6 +2072,12 @@ sub handle_loglevel_error($) {
 
         # Didn't receive data in time: a.fsdn.com:443
         $c =~ s@(?<=in time: )(.*)@$h{'destination'}$1$h{'Standard'}@;
+
+    } elsif ($c =~ m/^Sending data on socket \d+ over TLS/) {
+
+        # Sending data on socket 33 over TLS/SSL failed: no TLS/SSL errors detected
+        $c =~ s@(?<=on socket )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+
     }
 
     # XXX: There are probably more messages that deserve highlighting.
-- 
2.49.0