diff --git a/packages/core/src/utils/runtimeFetchOptions.test.ts b/packages/core/src/utils/runtimeFetchOptions.test.ts index e443fc25c..de3e18ead 100644 --- a/packages/core/src/utils/runtimeFetchOptions.test.ts +++ b/packages/core/src/utils/runtimeFetchOptions.test.ts @@ -86,6 +86,7 @@ describe('buildRuntimeFetchOptions (node runtime)', () => { expect(dispatcher?.options).toMatchObject({ bodyTimeout: 0, headersTimeout: 0, + keepAliveTimeout: 60_000, }); }); diff --git a/packages/core/src/utils/runtimeFetchOptions.ts b/packages/core/src/utils/runtimeFetchOptions.ts index 1409945be..7932e63fb 100644 --- a/packages/core/src/utils/runtimeFetchOptions.ts +++ b/packages/core/src/utils/runtimeFetchOptions.ts @@ -181,6 +181,7 @@ function getOrCreateNoProxyDispatcher(bodyTimeout: number): Dispatcher { const dispatcher = new Agent({ bodyTimeout, headersTimeout: 0, + keepAliveTimeout: 60_000, }); noProxyDispatcherCache.set(bodyTimeout, dispatcher);