diff options
| author | UltraQbik <no1skill@yandex.ru> | 2024-08-24 22:01:21 +0300 |
|---|---|---|
| committer | UltraQbik <no1skill@yandex.ru> | 2024-08-24 22:01:21 +0300 |
| commit | fc27a403be96b74dc993078ab1f575ac1322c4bd (patch) | |
| tree | 2bf4a71b7fa643d66b1612b975411817eacc5d07 /main.py | |
| parent | 746cb21a03363587a06fc9ae004adaa0855ef31c (diff) | |
| download | httpy-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.py | 2 |
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: |