git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e7b2b17
)
Update interface.py
author
dmcdad
<matt_bitcoin@halocube.com>
Wed, 15 Jan 2014 14:49:26 +0000 (08:49 -0600)
committer
dmcdad
<matt_bitcoin@halocube.com>
Wed, 15 Jan 2014 14:49:26 +0000 (08:49 -0600)
Fix timeout problem under Python 2.7.1 where a socket.error 60 is thrown instead of socket.timeout exception.
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
2eaa272
..
c821747
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-427,7
+427,9
@@
class Interface(threading.Thread):
except ssl.SSLError:
timeout = True
except socket.error, err:
- if err.errno in [11, 10035]:
+ if err.errno == 60:
+ timeout = True
+ elif err.errno in [11, 10035]:
print_error("socket errno", err.errno)
time.sleep(0.1)
continue