From 923dac842bb261a709db3fa56e78a5ca93127edb Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Mon, 17 Feb 2020 12:18:13 +0500 Subject: [PATCH] handle broken pipe error --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 35d6d18..9593fea 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1674,7 +1674,7 @@ async def handle_client_wrapper(reader, writer): await handle_client(reader, writer) except (asyncio.IncompleteReadError, asyncio.CancelledError): pass - except (ConnectionResetError, TimeoutError): + except (ConnectionResetError, TimeoutError, BrokenPipeError): pass except Exception: traceback.print_exc()