mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
Added a timeout on the urllib2 request during a notify event.
This commit is contained in:
parent
9c28489bc0
commit
2cafcf0d95
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ class Commands:
|
||||||
data = {'address':address, 'status':x.get('result')}
|
data = {'address':address, 'status':x.get('result')}
|
||||||
try:
|
try:
|
||||||
req = urllib2.Request(URL, json.dumps(data), headers)
|
req = urllib2.Request(URL, json.dumps(data), headers)
|
||||||
response_stream = urllib2.urlopen(req)
|
response_stream = urllib2.urlopen(req, timeout=5)
|
||||||
util.print_error('Got Response for %s' % address)
|
util.print_error('Got Response for %s' % address)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
util.print_error(str(e))
|
util.print_error(str(e))
|
||||||
|
|
Loading…
Add table
Reference in a new issue