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

Keep retrying in addrConn even on non-temporary errors #1856

Merged
merged 2 commits into from
Feb 14, 2018

Conversation

menghanl
Copy link
Contributor

@menghanl menghanl commented Feb 9, 2018

Retrying happens with exponential backoff, so the overhead should be tolerable.
We need this to trigger resolver re-resolve for new addresses.

Permanent errors are in general hard to deal with, and it's not support in other languages.
It's sometimes hard to tell the difference between temporary errors and non-temporary errors. Even for the typical "permanent" TLS handshake errors, it could be caused by a wrong setting on the server side, and a second retry could work.

We still need to way to let the user find out this kind of errors quickly.
With #1855, users should have enough information to decide what to do based on the returned RPC errors.

@menghanl menghanl merged commit e014063 into grpc:master Feb 14, 2018
@menghanl menghanl deleted the retry_non_temp_error branch February 14, 2018 00:07
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants