소스 검색

优化超时时间

zhangdongming 11 달 전
부모
커밋
4480c19ec0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Service/VivoPushService/push_admin/APISenderBase.py

+ 1 - 1
Service/VivoPushService/push_admin/APISenderBase.py

@@ -53,7 +53,7 @@ def _http_call(url, method, token, **message):
         req.add_header('authToken', token)
     req.add_header('Content-Type', 'application/json;charset=UTF-8')
     try:
-        resp = urllib.request.urlopen(req, timeout=5)
+        resp = urllib.request.urlopen(req, timeout=10)
         r = _parse_json(resp.read().decode())
         return r
     except urllib.error.HTTPError as e: