From 75e5a8b67975e715ba2ba8d351d3391622a2aefc Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Thu, 29 Aug 2024 11:34:14 +0300 Subject: Add 10 second timeout --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 3a14ff2..ff6f5c0 100644 --- a/main.py +++ b/main.py @@ -162,6 +162,7 @@ class HTTPServer: self.semaphore.acquire() try: + client.settimeout(10) client.setblocking(False) request = self._recv_request(client) if request is not None: -- cgit 1.4.1