Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/src/core/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const CreateClient = (opts: ClientOptions): Client => {

// Interceptors apply to all calls running through this transport.
interceptors: [],
defaultTimeoutMs: 75_000,
});

return {
Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/build-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export default async function build(opts: BuildConfig) {
logLevel: opts.logger.level as pino.LevelWithSilent,
// Avoid compression for small requests
compressMinBytes: 1024,
maxTimeoutMs: 25_000,
maxTimeoutMs: 80_000,
shutdownTimeoutMs: 30_000,
// The default limit is the maximum supported value of ~4GiB
// We go with 32MiB to avoid allocating too much memory for large requests
Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/plugins/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default fp<ChPluginOptions>(async function ClickHousePlugin(fastify, opts
dsn: opts.dsn,
logger: opts.logger,
httpConfig: {
timeout: 20_000,
timeout: 60_000,
},
});

Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface RouterOptions {
cdnBaseUrl: string;
}
const handlerOptions: Partial<ConnectRouterOptions> = {
maxTimeoutMs: 25_000,
maxTimeoutMs: 80_000,
jsonOptions: {
emitDefaultValues: true,
},
Expand Down