git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a9181a3
)
add sockettimeout to header download by HTTP
author
Eagle[TM]
<eagletm@mpex.net>
Wed, 19 Dec 2012 08:41:23 +0000 (09:41 +0100)
committer
Eagle[TM]
<eagletm@mpex.net>
Wed, 19 Dec 2012 08:41:23 +0000 (09:41 +0100)
lib/verifier.py
patch
|
blob
|
history
diff --git
a/lib/verifier.py
b/lib/verifier.py
index
6e35a9a
..
fbe1667
100644
(file)
--- a/
lib/verifier.py
+++ b/
lib/verifier.py
@@
-298,7
+298,8
@@
class WalletVerifier(threading.Thread):
return
try:
- import urllib
+ import urllib, socket
+ socket.setdefaulttimeout(30)
print_error("downloading ", self.headers_url )
urllib.urlretrieve(self.headers_url, filename)
except: