Browse Source

知识服务[连接应用状态超时设置为1s]

liangxunge 1 month ago
parent
commit
7f4aacf2f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/models/external_application.py

+ 1 - 1
api/models/external_application.py

@@ -51,7 +51,7 @@ class ExternalApplication(db.Model):
             return False
         # 4). 使用requests库发送HTTP请求
         try:
-            response = requests.get(self.url, timeout=5)
+            response = requests.get(self.url, timeout=1)
             if response.status_code == 200:
                 return True
             else: