#292 Ping thread needs to connect to MySQL using timeout in order to be able to throw an exception when the proxy isn't responding anymore

pull/275/head^2
Andrei Ismail 11 years ago
parent 138a2d27df
commit b671a35379

@ -41,7 +41,8 @@ class ProxySQL_Ping_Thread(Thread):
self.username,
self.password,
port=self.port,
db=self.db)
db=self.db,
connect_timeout=30)
cursor = connection.cursor()
cursor.execute(self.ping_command)
rows = cursor.fetchall()

Loading…
Cancel
Save