mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-11 03:13:42 +00:00
catch IncompleteReadError while handling a bad client
This commit is contained in:
1 parent
639dea5e8d
commit
8b26cc843d
1 file changed
+1
-1
+1
-1
@@ -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