mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Make daemon/wallet connections timeout at 20 seconds
This commit is contained in:
parent
cf05473c2c
commit
1771e7879f
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ def AmountToString(amount):
|
|||
|
||||
def SendJSONRPCCommand(host,port,method,params):
|
||||
try:
|
||||
http = httplib.HTTPConnection(host,port)
|
||||
http = httplib.HTTPConnection(host,port,timeout=20)
|
||||
except Exception,e:
|
||||
log_error('SendJSONRPCCommand: Error connecting to %s:%u: %s' % (host, port, str(e)))
|
||||
raise
|
||||
|
@ -118,7 +118,7 @@ def SendJSONRPCCommand(host,port,method,params):
|
|||
|
||||
def SendHTMLCommand(host,port,method):
|
||||
try:
|
||||
http = httplib.HTTPConnection(host,port)
|
||||
http = httplib.HTTPConnection(host,port,timeout=20)
|
||||
except Exception,e:
|
||||
log_error('SendHTMLCommand: Error connecting to %s:%u: %s' % (host, port, str(e)))
|
||||
raise
|
||||
|
|
Loading…
Reference in a new issue