tsocket errno 11: raise timeout instead of looping - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ab1714e9f27f11fe9392b96a2e8f8f617d833962 DIR parent de92f1c98f20ceeaa420a74ba749906c4d2d1fb8 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 18 Oct 2015 09:23:44 +0200 socket errno 11: raise timeout instead of looping Diffstat: M lib/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/util.py b/lib/util.py t@@ -415,9 +415,9 @@ class SocketPipe: if err.errno == 60: raise timeout elif err.errno in [11, 35, 10035]: - print_error("socket errno", err.errno) - time.sleep(0.1) - continue + print_error("socket errno %d (resource temporarily unavailable)"% err.errno) + time.sleep(0.2) + raise timeout else: print_error("pipe: socket error", err) data = ''