mirror of
https://github.com/wownero/tippero.git
synced 2026-12-05 15:04:00 +01:00
Make daemon/wallet connections timeout at 20 seconds
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user