change node vless bunled

This commit is contained in:
zizifn
2023-04-23 01:12:25 +08:00
committed by zizifn
parent fe279a7aa1
commit 16ac187f3a
3 changed files with 3 additions and 3 deletions

View File

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