renyupeng 3 年之前
父节点
当前提交
32297a292f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Apietl/conn/TidbConn.py

+ 1 - 1
Apietl/conn/TidbConn.py

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