mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-23 16:38:34 +08:00
change node vless bunled
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
2
dist/apps/node-vless/main.js
vendored
2
dist/apps/node-vless/main.js
vendored
@@ -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) => {
|
||||||
|
|||||||
2
dist/apps/node-vless/main.js.map
vendored
2
dist/apps/node-vless/main.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user