mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
add sockettimeout to header download by HTTP
This commit is contained in:
parent
a9181a38f2
commit
12cc65abbd
1 changed files with 2 additions and 1 deletions
|
@ -298,7 +298,8 @@ class WalletVerifier(threading.Thread):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import urllib
|
import urllib, socket
|
||||||
|
socket.setdefaulttimeout(30)
|
||||||
print_error("downloading ", self.headers_url )
|
print_error("downloading ", self.headers_url )
|
||||||
urllib.urlretrieve(self.headers_url, filename)
|
urllib.urlretrieve(self.headers_url, filename)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Reference in a new issue