mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-14 07:13:09 +00:00
catch IncompleteReadError while handling a bad client
This commit is contained in:
@@ -1013,7 +1013,7 @@ async def handle_bad_client(reader_clt, writer_clt, handshake):
|
|||||||
|
|
||||||
writer.write(data)
|
writer.write(data)
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
except OSError:
|
except (OSError, asyncio.IncompleteReadError) as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
writer_srv = None
|
writer_srv = None
|
||||||
|
|||||||
Reference in New Issue
Block a user