Skip to content

Commit

Permalink
feat: keep alive and enable h2
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa committed Jan 9, 2025
1 parent 2176a04 commit f5085b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/broker/transport/json/undici.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export class PinotBrokerJSONTransport implements IPinotBrokerTransport {
brokerUrl,
connections = undefined,
// connectTimeout = 1000,
keepAliveTimeout = 60000,
headersTimeout = 60000,
keepAliveMaxTimeout = 60000,
keepAliveMaxTimeout = 600000,
token,
maxQueueSize,
}: IBrokerTransportConfig) {
Expand All @@ -44,6 +45,9 @@ export class PinotBrokerJSONTransport implements IPinotBrokerTransport {
keepAliveMaxTimeout,
keepAliveTimeoutThreshold: 5000,
headersTimeout,
keepAliveTimeout,
allowH2: true,
maxRedirections: 0,
// connect: {
// timeout: connectTimeout,
// },
Expand Down

0 comments on commit f5085b5

Please sign in to comment.