Ignore "muted" errors during request creation
This commit is contained in:
@@ -1371,6 +1371,11 @@ class Microdot:
|
|||||||
try:
|
try:
|
||||||
req = await Request.create(self, reader, writer,
|
req = await Request.create(self, reader, writer,
|
||||||
writer.get_extra_info('peername'))
|
writer.get_extra_info('peername'))
|
||||||
|
except OSError as exc: # pragma: no cover
|
||||||
|
if exc.errno in MUTED_SOCKET_ERRORS:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
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