From 11b2fa6e8d6846673374e618a3d0556ed7012dfe Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Sat, 24 Aug 2024 23:09:28 +0300 Subject: Fix odd bugs Odd because I don't know why I coded it that way --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8760d15..36d70aa 100644 --- a/main.py +++ b/main.py @@ -115,7 +115,7 @@ class HTTPServer: # accept new client client = self._accept() if client is None: - break + continue # create thread for new client and append it to the list th = threading.Thread(target=self._client_thread, args=[client]) @@ -268,7 +268,9 @@ class HTTPServer: except BlockingIOError: time.sleep(0.005) except ssl.SSLEOFError: - pass # i d c + break + except TimeoutError: + break return None -- cgit 1.4.1