Commit c0fecf87 by James Cammarata

Increase default socket timeout to 5 minutes

parent 2c6baf68
...@@ -76,7 +76,7 @@ class Connection(object): ...@@ -76,7 +76,7 @@ class Connection(object):
# TODO: make the timeout and retries configurable? # TODO: make the timeout and retries configurable?
tries = 3 tries = 3
self.conn = socket.socket() self.conn = socket.socket()
self.conn.settimeout(30.0) self.conn.settimeout(300.0)
while tries > 0: while tries > 0:
try: try:
self.conn.connect((self.host,self.fbport)) self.conn.connect((self.host,self.fbport))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment