Use 10s timeout while establishing new connections
This commit is contained in:
parent
1a42876521
commit
a4f5532f94
|
@ -115,7 +115,7 @@ class Connection(threading.Thread):
|
|||
logging.debug('Connecting to {}:{}'.format(self.host, self.port))
|
||||
|
||||
try:
|
||||
self.s = socket.create_connection((self.host, self.port))
|
||||
self.s = socket.create_connection((self.host, self.port), 10)
|
||||
self.status = 'connected'
|
||||
logging.info('Established TCP connection to {}:{}'.format(self.host, self.port))
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user