Skip to content

feat(client): add WithConnectionTimeout call option#2891

Merged
asim merged 1 commit intomicro:masterfrom
BombartSimon:feat/with-connection-timeout-call-option
Mar 16, 2026
Merged

feat(client): add WithConnectionTimeout call option#2891
asim merged 1 commit intomicro:masterfrom
BombartSimon:feat/with-connection-timeout-call-option

Conversation

@BombartSimon
Copy link
Copy Markdown
Contributor

What

Adds WithConnectionTimeout(d time.Duration) CallOption to the client package, allowing callers to override the connection timeout on a per-call basis.

Why

The existing ConnectionTimeout(t time.Duration) Option sets the connection timeout at the client level (applies to all calls). There was no way to override this per-call, unlike other timeouts such as WithRequestTimeout or WithDialTimeout which already have their CallOption counterparts.

This follows the existing pattern where client-level options have a corresponding With* CallOption variant.

@asim asim merged commit 7b785df into micro:master Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants