mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-13 23:03: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)
|
||||
await writer.drain()
|
||||
except OSError:
|
||||
except (OSError, asyncio.IncompleteReadError) as e:
|
||||
pass
|
||||
|
||||
writer_srv = None
|
||||
|
||||
Reference in New Issue
Block a user