Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client] Raise default timeout, allow overriding per-request #1286

Merged
merged 2 commits into from May 3, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented May 2, 2019

This PR ensures that the default timeout is above the technical limits (5 minutes, vs 3 minute mutation and 1 minute query timeout). This will lead to more understandable error messages on timeouts, and being able to more easily differentiate between client and server timeouts.

Also added the ability to override timeout and token on a per-request basis, which can be quite useful in a lot of situations.

@erikgrinaker
Copy link

SGTM. It might be worth differentiating between request timeouts and network timeouts, if possible. The initial TCP connection handshake should have a much lower timeout (e.g. 10 seconds or something reasonable), but the response timeout should be above our operation timeouts.

@rexxars rexxars merged commit 96b6689 into next May 3, 2019
@rexxars rexxars deleted the client-timeout-tuning branch May 3, 2019 08:28
bjoerge pushed a commit that referenced this pull request Aug 13, 2019
* [client] Raise default timeout to 5 minutes

* [client] Allow overriding timeout + token per-request
rexxars added a commit that referenced this pull request Jan 26, 2022
* [client] Raise default timeout to 5 minutes

* [client] Allow overriding timeout + token per-request
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.

None yet

2 participants