From 23a4b9abe39f23a9003a476a963736c155cc4d5b Mon Sep 17 00:00:00 2001 From: Daniel Lysfjord Date: Tue, 1 Jul 2025 20:12:43 +0200 Subject: [PATCH] Timeouts aren't hostile (enough) --- lib/haproxy_parser.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/haproxy_parser.pm b/lib/haproxy_parser.pm index ba30441..9b2b841 100644 --- a/lib/haproxy_parser.pm +++ b/lib/haproxy_parser.pm @@ -23,13 +23,8 @@ sub parser { $host = $2; }; } elsif($string =~ m/https\/1: (Timeout|Connection closed) during SSL handshake/) { - $_ = $string; - $reply = 'SSL handshake error'; - $hostile = 1; - PARSE: - m/(:\ ($re_host):[0-9]{1,6})/gcix && do { - $host = $2; - }; + $_ = $string; + $reply = 'SSL handshake error'; } elsif($string =~ m/http(s\~|) http(s|)\/\/) { if($string =~ m/-1\/-1\/-1\/-1\/[0-9]{1,20} (400|0) 0/) { #This one seems like someone is doing something bad. Return code 400/0