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

Introduce a 15s RPC deadline to all calls #13

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

erikjoh
Copy link
Contributor

@erikjoh erikjoh commented Feb 1, 2022

It's good practice to add deadlines to all RPCs and in some cases a server may even enforce that deadlines are present.
Similarly to the connection timeout of 5s already present in grpcdebug, this change adds a 15s deadline to all RPCs as well.
Making the deadline configurable probably isn't needed since 15s should be sufficient in most/all cases.

This change also adds the xDS resolver and upgrades some dependencies.

Copy link
Collaborator

@lidizheng lidizheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is very helpful!

main.go Show resolved Hide resolved
@lidizheng lidizheng merged commit ae39265 into grpc-ecosystem:main Feb 1, 2022
@erikjoh
Copy link
Contributor Author

erikjoh commented Feb 1, 2022

Thanks for having a look at this so quickly! 😄
Could we get a release with this change as well?

@erikjoh erikjoh deleted the rpc-deadline branch February 1, 2022 20:17
@lidizheng
Copy link
Collaborator

Done. The binaries will be uploaded shortly.

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.

3 participants