diff options
| author | UltraQbik <no1skill@yandex.ru> | 2024-08-29 11:34:14 +0300 |
|---|---|---|
| committer | UltraQbik <no1skill@yandex.ru> | 2024-08-29 11:34:14 +0300 |
| commit | 75e5a8b67975e715ba2ba8d351d3391622a2aefc (patch) | |
| tree | c1797cb72e3e62e1b3cdd8420524fa4fabccaa50 | |
| parent | 7b6c4ec6f1255f56a4798e3607f721b625ced2b7 (diff) | |
| download | httpy-75e5a8b67975e715ba2ba8d351d3391622a2aefc.tar.gz httpy-75e5a8b67975e715ba2ba8d351d3391622a2aefc.zip | |
Add 10 second timeout
| -rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |