fix: upgrade Next to bound gzip drain listeners

This commit is contained in:
amosblomqvist
2026-10-28 00:20:49 +02:00
parent 8f6fd7cd29
commit 59f389d0a6
5 changed files with 436 additions and 166 deletions
+3
View File
@@ -27,6 +27,7 @@
import { spawn } from "node:child_process";
import { probeEnv, verifyDemoRuntime } from "./smoke-demo-runtime.mjs";
import { verifyProviderRuntime } from "./smoke-provider-runtime.mjs";
import { verifyCompressionRuntime } from "./smoke-compression-runtime.mjs";
import { createRequire } from "node:module";
import * as fs from "node:fs";
import * as http from "node:http";
@@ -83,6 +84,8 @@ async function main() {
verifyDemoRuntime(STANDALONE, RUNTIME);
// /api/models only reads catalogs; initialize the real lazy SDK offline too.
verifyProviderRuntime(STANDALONE, RUNTIME);
// A plain GET without Accept-Encoding never exercises gzip backpressure.
verifyCompressionRuntime(STANDALONE, RUNTIME);
const port = await freePort();
const url = `http://127.0.0.1:${port}`;
const home = fs.mkdtempSync(path.join(os.tmpdir(), "lh-smoke-"));