Skip to content

Allow dial timeout to exceed IO timeout - #38

Merged
g7r merged 1 commit into
masterfrom
feature/dial-timeout-above-io-timeout
Sep 11, 2026
Merged

g7r merged 1 commit into
masterfrom
feature/dial-timeout-above-io-timeout

Conversation

@g7r

@g7r g7r commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

DialTimeout could not be raised above IOTimeout: Connect collapsed it
into IOTimeout, and dial() capped it at 5 seconds on top of that. A
caller that needs a long connection setup but short per-command
deadlines had no way to express it.

ReconnectPause still defaults to DialTimeout * 2, so raising the dial
timeout alone also lengthens the pause between reconnect attempts.

DialTimeout could not be raised above IOTimeout: Connect collapsed it
into IOTimeout, and dial() capped it at 5 seconds on top of that. A
caller that needs a long connection setup but short per-command
deadlines had no way to express it.

ReconnectPause still defaults to DialTimeout * 2, so raising the dial
timeout alone also lengthens the pause between reconnect attempts.
@g7r
g7r marked this pull request as ready for review September 11, 2026 16:33
@g7r
g7r merged commit 277648e into master Sep 11, 2026
24 of 36 checks passed
@g7r g7r mentioned this pull request Sep 11, 2026
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