From 0a2548d6e589c8ff2d296200a7c026e3bfc42030 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Thu, 31 Jul 2025 22:25:19 +0800 Subject: [PATCH] Chore: enable HTTP/2 again --- Build/lib/fetch-retry.ts | 2 +- Build/trace/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Build/lib/fetch-retry.ts b/Build/lib/fetch-retry.ts index a5de36e9..f38a5750 100644 --- a/Build/lib/fetch-retry.ts +++ b/Build/lib/fetch-retry.ts @@ -23,7 +23,7 @@ if (!fs.existsSync(CACHE_DIR)) { fs.mkdirSync(CACHE_DIR, { recursive: true }); } -const agent = new Agent({ allowH2: false }); +const agent = new Agent({ allowH2: true }); setGlobalDispatcher(agent.compose( interceptors.dns({ diff --git a/Build/trace/index.ts b/Build/trace/index.ts index 9baa549c..78958d2b 100644 --- a/Build/trace/index.ts +++ b/Build/trace/index.ts @@ -122,6 +122,7 @@ export function task(importMetaMain: boolean, importMetaPath: string) { dummySpan.stop(); printTraceResult(dummySpan.traceResult); process.nextTick(whyIsNodeRunning); + process.nextTick(() => process.exit(0)); }); }