about summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-24 22:01:21 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-24 22:01:21 +0300
commitfc27a403be96b74dc993078ab1f575ac1322c4bd (patch)
tree2bf4a71b7fa643d66b1612b975411817eacc5d07 /main.py
parent746cb21a03363587a06fc9ae004adaa0855ef31c (diff)
downloadhttpy-fc27a403be96b74dc993078ab1f575ac1322c4bd.tar.gz
httpy-fc27a403be96b74dc993078ab1f575ac1322c4bd.zip
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
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
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: