fix: allow native service proxy long requests
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user