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) { async function wsAsyncWrite(ws: WebSocket, chunk: Uint8Array) {
// 20m not transmitted to the network // 20m not transmitted to the network
while (ws.bufferedAmount > 1024 * 20) { while (ws.bufferedAmount > 1024 * 1024 * 20) {
await delay(10); await delay(10);
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

View File

@@ -6268,7 +6268,7 @@ function socketAsyncWrite(ws, chunk) {
function wsAsyncWrite(ws, chunk) { function wsAsyncWrite(ws, chunk) {
return tslib_1.__awaiter(this, void 0, void 0, function* () { return tslib_1.__awaiter(this, void 0, void 0, function* () {
// 20m not transmitted to the network // 20m not transmitted to the network
while (ws.bufferedAmount > 1024 * 20) { while (ws.bufferedAmount > 1024 * 1024 * 20) {
yield (0, vless_js_1.delay)(10); yield (0, vless_js_1.delay)(10);
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

File diff suppressed because one or more lines are too long