Browse Source

增加超时时间

Pchen0 8 hours ago
parent
commit
9b57fabdb1
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lib/Lepao/lepaoSchoolHttp.js

+ 1 - 4
lib/Lepao/lepaoSchoolHttp.js

@@ -193,10 +193,7 @@ async function postLepaoSchool(url, data, options = {}) {
 
     await logSchoolOutbound(logger, '首次请求', url, frag)
     try {
-        const proxyFirstTimeoutMs = Math.max(
-            1000,
-            Number(process.env.LEPAO_PROXY_FIRST_TIMEOUT_MS || Math.min(timeout, 6000))
-        )
+        const proxyFirstTimeoutMs = 10000
         return await doPost(frag, proxyFirstTimeoutMs)
     } catch (e1) {
         if (!isQgProxyEligibleFailure(e1)) throw e1