|
@@ -27,7 +27,7 @@ class TidbConn:
|
|
port=ConfConstant.TIDB_PORT, charset="utf8")
|
|
port=ConfConstant.TIDB_PORT, charset="utf8")
|
|
|
|
|
|
@classmethod
|
|
@classmethod
|
|
- def _reConn(cls, num=28800, stime=3): # 重试连接总次数为1天,这里根据实际情况自己设置,如果服务器宕机1天都没发现就......
|
|
|
|
|
|
+ def _reConn(cls, num=28800, stime=5): # 重试连接总次数为1天,这里根据实际情况自己设置,如果服务器宕机1天都没发现就......
|
|
_number = 0
|
|
_number = 0
|
|
_status = True
|
|
_status = True
|
|
while _status and _number <= num:
|
|
while _status and _number <= num:
|