Ignore "muted" errors during request creation

This commit is contained in:
Miguel Grinberg
2025-11-07 00:05:21 +00:00
parent d61785b2e8
commit ce9de6e37a

View File

@@ -1371,6 +1371,11 @@ class Microdot:
try:
req = await Request.create(self, reader, writer,
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
print_exception(exc)