From 6f8bfdb5685ecff55c6c7dba84fb6e69191864d6 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Thu, 5 Jul 2018 15:45:53 +0500 Subject: [PATCH] add timeout error to errno --- mtprotoproxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 474eb23..80716b1 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1066,6 +1066,7 @@ def loop_exception_handler(loop, context): if isinstance(exception, OSError): IGNORE_ERRNO = { 10038, # operation on non-socket on Windows, likely because fd == -1 + 121, # the semaphore timeout period has expired on Windows } FORCE_CLOSE_ERRNO = {