修复:
- 更新检查超时从 10 秒放宽到 20 秒(隧道到 Gitea 链路较慢,避免慢网被误判为失败)
This commit is contained in:
+1
-1
@@ -2052,7 +2052,7 @@ class MainWindow(QWidget):
|
||||
{"http": f"{PROXY_HOST}:{PROXY_PORT}",
|
||||
"https": f"{PROXY_HOST}:{PROXY_PORT}"}))
|
||||
req = urllib.request.Request(url)
|
||||
data = opener.open(req, timeout=10).read().decode("utf-8-sig")
|
||||
data = opener.open(req, timeout=20).read().decode("utf-8-sig")
|
||||
finally:
|
||||
_release_forwarder(started_here)
|
||||
info = json.loads(data)
|
||||
|
||||
Reference in New Issue
Block a user