Skip to content

Commit d425aa1

Browse files
authored
fix: update the timeouts for clickhouse and platform service (#1500)
1 parent 7f0f4bb commit d425aa1

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

cli/src/core/client/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const CreateClient = (opts: ClientOptions): Client => {
3838

3939
// Interceptors apply to all calls running through this transport.
4040
interceptors: [],
41+
defaultTimeoutMs: 75_000,
4142
});
4243

4344
return {

controlplane/src/core/build-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export default async function build(opts: BuildConfig) {
482482
logLevel: opts.logger.level as pino.LevelWithSilent,
483483
// Avoid compression for small requests
484484
compressMinBytes: 1024,
485-
maxTimeoutMs: 25_000,
485+
maxTimeoutMs: 80_000,
486486
shutdownTimeoutMs: 30_000,
487487
// The default limit is the maximum supported value of ~4GiB
488488
// We go with 32MiB to avoid allocating too much memory for large requests

controlplane/src/core/plugins/clickhouse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default fp<ChPluginOptions>(async function ClickHousePlugin(fastify, opts
1919
dsn: opts.dsn,
2020
logger: opts.logger,
2121
httpConfig: {
22-
timeout: 20_000,
22+
timeout: 60_000,
2323
},
2424
});
2525

controlplane/src/core/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface RouterOptions {
5151
cdnBaseUrl: string;
5252
}
5353
const handlerOptions: Partial<ConnectRouterOptions> = {
54-
maxTimeoutMs: 25_000,
54+
maxTimeoutMs: 80_000,
5555
jsonOptions: {
5656
emitDefaultValues: true,
5757
},

0 commit comments

Comments
 (0)