change node vless bunled

This commit is contained in:
zizifn
2023-04-23 01:39:39 +08:00
committed by zizifn
parent 09a7fb6225
commit 2cdf4ad6f8
3 changed files with 5 additions and 5 deletions

View File

@@ -281,8 +281,8 @@ async function socketAsyncWrite(ws: Duplex, chunk: Buffer) {
}
async function wsAsyncWrite(ws: WebSocket, chunk: Uint8Array) {
// 1m not transmitted to the network
while (ws.bufferedAmount > 1024 * 1024 * 10) {
// 5m not transmitted to the network
while (ws.bufferedAmount > 1024 * 1024 * 5) {
await delay(1);
}
return new Promise((resolve, reject) => {