Increase default socket timeout to 5 minutes

This commit is contained in:
James Cammarata 2013-09-04 09:47:40 -05:00
parent 2c6baf6845
commit c0fecf87d1

View file

@ -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))