The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(ui): send Connection: close on every integration browser request (#46805)
Mateo Wang238597ed4950
diff --git a/tests/e2e/ui/integration.config.ts b/tests/e2e/ui/integration.config.tsindex e332c865222..55ccb860512 100644--- a/tests/e2e/ui/integration.config.ts+++ b/tests/e2e/ui/integration.config.ts@@ -23,6 +23,8 @@ export default defineConfig({use: {...devices["Desktop Chrome"],baseURL: UI_BASE_URL,+ // The proxy closes idle keep-alive sockets after 5s and a reused one fails with "socket hang up"+ extraHTTPHeaders: { Connection: "close" },actionTimeout: 15_000,navigationTimeout: 30_000,trace: "retain-on-failure",diff --git a/tests/e2e/ui/tests/integrationCritical/mcpUserEnvVars.spec.ts b/tests/e2e/ui/tests/integrationCritical/mcpUserEnvVars.spec.tsindex fee09b409c7..11cc1c948a3 100644--- a/tests/e2e/ui/tests/integrationCritical/mcpUserEnvVars.spec.ts+++ b/tests/e2e/ui/tests/integrationCritical/mcpUserEnvVars.spec.ts@@ -12,7 +12,7 @@ import { captureRequestBody } from "../../helpers/roundTrip";import { masterKey } from "../../helpers/traffic";const master = masterKey();-const headers = { Authorization: `Bearer ${master}`, Connection: "close" };+const headers = { Authorization: `Bearer ${master}` };const TOKEN = "USER_TOKEN";type EnvVarStatus = {