Increase default socket timeout to 5 minutes
This commit is contained in:
parent
2c6baf6845
commit
c0fecf87d1
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Connection(object):
|
|||
# TODO: make the timeout and retries configurable?
|
||||
tries = 3
|
||||
self.conn = socket.socket()
|
||||
self.conn.settimeout(30.0)
|
||||
self.conn.settimeout(300.0)
|
||||
while tries > 0:
|
||||
try:
|
||||
self.conn.connect((self.host,self.fbport))
|
||||
|
|
Loading…
Reference in a new issue