浏览代码

优化超时时间

zhangdongming 9 月之前
父节点
当前提交
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: