From 88713d9290e45b790c8fb829b4bfb97a7bfacaf1 Mon Sep 17 00:00:00 2001 From: localhost Date: Sat, 7 Nov 2026 08:42:37 +0100 Subject: [PATCH] fix(download): disable keepalive for chunk posts --- utils/companion.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/companion.ts b/utils/companion.ts index eb3ce7f..fddd718 100644 --- a/utils/companion.ts +++ b/utils/companion.ts @@ -125,6 +125,7 @@ export async function downloadStream(streamUrl: string, format: any, stream: Wri method: "POST", body: new Uint8Array([0x78, 0]), // protobuf: { 15: 0 } (no idea what it means but this is what YouTube uses), headers: headersToSend, + keepalive: false, proxy }); if (postResponse.status !== 200) {