From 6e29fac77188263d28da80c4a4e341d2d33ff1ce Mon Sep 17 00:00:00 2001 From: cmliu Date: Thu, 13 Nov 2025 18:32:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=B8=AD=E7=9A=84=E4=BC=A0=E8=BE=93=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=BA'adaptive'=EF=BC=8C=E4=BB=A5=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=B0=83=E6=95=B4=E4=BC=A0=E8=BE=93=E6=95=88=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index b72e1f2..9428c4c 100644 --- a/_worker.js +++ b/_worker.js @@ -375,7 +375,7 @@ function handleConnection(ws, request, FIXED_UUID) { let isConnecting = false, isReading = false; let score = 1.0, lastCheck = Date.now(), lastRxBytes = 0, successCount = 0, failCount = 0; let stats = { total: 0, count: 0, bigChunks: 0, window: 0, timestamp: Date.now() }; - let mode = 'direct', avgSize = 0, throughputs = []; + let mode = 'adaptive', avgSize = 0, throughputs = []; // 动态调整传输模式 const updateMode = size => {