More robust check for socket timeout error code (Fixes #106)
This commit is contained in:
@@ -1164,7 +1164,7 @@ class Microdot():
|
|||||||
req = Request.create(self, stream, addr, sock)
|
req = Request.create(self, stream, addr, sock)
|
||||||
res = self.dispatch_request(req)
|
res = self.dispatch_request(req)
|
||||||
except socket_timeout_error as exc: # pragma: no cover
|
except socket_timeout_error as exc: # pragma: no cover
|
||||||
if exc.errno and exc.errno not in [60, 110]:
|
if exc.errno and exc.errno != errno.ETIMEDOUT:
|
||||||
print_exception(exc) # not a timeout
|
print_exception(exc) # not a timeout
|
||||||
except Exception as exc: # pragma: no cover
|
except Exception as exc: # pragma: no cover
|
||||||
print_exception(exc)
|
print_exception(exc)
|
||||||
|
|||||||
Reference in New Issue
Block a user