From fc27a403be96b74dc993078ab1f575ac1322c4bd Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Sat, 24 Aug 2024 22:01:21 +0300 Subject: ignore ssl with EOF protocol violation When a client decides to update a page a bunch of times, it sends this error to a server. There's nothing server can do about this --- main.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index 33dbcd4..176089f 100644 --- a/main.py +++ b/main.py @@ -135,6 +135,8 @@ class HTTPServer: request = self._recv_request(client) if request is not None: self._client_request_handler(client, request) + except ssl.SSLEOFError: + pass # idc except TimeoutError: print("Client timeout") except Exception as e: -- cgit 1.4.1