catch IncompleteReadError while handling a bad client

This commit is contained in:
Alexander Bersenev committed 2020-02-13 14:22:32 +05:00
1 parent 639dea5e8d
commit 8b26cc843d
1 file changed
+1 -1
+1 -1
View File
@@ -1013,7 +1013,7 @@ async def handle_bad_client(reader_clt, writer_clt, handshake):
writer.write(data)
await writer.drain()
except OSError:
except (OSError, asyncio.IncompleteReadError) as e:
pass
writer_srv = None