More robust timeout handling (Fixes #106)

This commit is contained in:
Miguel Grinberg
2023-02-28 18:30:34 +00:00
parent d0d358f94a
commit 4d432a7d6c

View File

@@ -1106,7 +1106,7 @@ class Microdot():
req = Request.create(self, stream, addr, sock)
res = self.dispatch_request(req)
except socket_timeout_error as exc: # pragma: no cover
if exc.errno and exc.errno != 60:
if exc.errno and exc.errno not in [60, 110]:
print_exception(exc) # not a timeout
except Exception as exc: # pragma: no cover
print_exception(exc)