From 7653408ff44d1caec73ad90c562d200584704d91 Mon Sep 17 00:00:00 2001 From: ecdsa Date: Sat, 27 Apr 2013 07:30:18 +0200 Subject: [PATCH] fix: socket error --- lib/interface.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/interface.py b/lib/interface.py index f3dcd0775..8a89ce31a 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -336,6 +336,13 @@ class Interface(threading.Thread): timeout = True except ssl.SSLError: timeout = True + except socket.error, err: + if err.errno == 11: + time.sleep(0.1) + continue + else: + traceback.print_exc(file=sys.stdout) + raise if timeout: # ping the server with server.version, as a real ping does not exist yet