fix: allow native service proxy long requests

This commit is contained in:
Codex
2026-05-16 16:09:59 +00:00
parent d77a0e129a
commit daf0b6d315
2 changed files with 2 additions and 2 deletions
@@ -48,6 +48,7 @@ COPY src/components/microservices/code-queue/package.json ./package.json
RUN test -d node_modules/typescript || bun install
WORKDIR /app
COPY package.json /app/package.json
COPY bun.lock /app/bun.lock
RUN bun install
COPY src/components/shared /app/src/components/shared
WORKDIR /app/src/components/microservices/code-queue
@@ -515,8 +515,7 @@ async function nativeServiceProxyResponse(
const headers = forwardHeaders(req);
const bodyText = req.method === "GET" || req.method === "HEAD" ? "" : await req.text();
const controller = new AbortController();
const nativeTimeoutMs = Math.min(timeoutMs, config.nativeServiceProbeTimeoutMs);
const timer = setTimeout(() => controller.abort(), nativeTimeoutMs);
const timer = setTimeout(() => controller.abort(), timeoutMs);
const startedAt = Date.now();
try {
const upstream = await fetch(upstreamUrl, {