Skip to content

Commit 3403c8e

Browse files
test with updated h2 config
1 parent 7f9275d commit 3403c8e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/orkes/helpers/resolveFetchFn.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ export const resolveFetchFn = async (
1313
// eslint-disable-next-line
1414
// @ts-ignore since undici is an optional dependency and could me missing
1515
const { fetch: undiciFetch, Agent } = await import("undici");
16-
const undiciAgent = new Agent({ allowH2: true });
16+
const undiciAgent = new Agent({
17+
allowH2: true,
18+
connections: 1,
19+
//keepAliveTimeout: 4000,
20+
//keepAliveMaxTimeout: 1000 * 60 * 10,
21+
});
1722

1823
return ((input: RequestInfo, init?: RequestInit) =>
1924
undiciFetch(input, { ...init, dispatcher: undiciAgent })) as FetchFn;

0 commit comments

Comments
 (0)