-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Is there anyway to prevent reconnection attempt behavior in Credentials? #2863
Comments
As indicated here, if the error returned by Some relevant context here. |
What exactly is a wrapper error under this definition? // If the returned error is a wrapper error, implementations should make sure that
// the error implements Temporary() to have the correct retry behaviors. The option |
Below is an example of wrapper error.
In your case, your For grpc, an attempt to establish a connection may be impacted by many different things (e.g. interrupt in network, server not up yet, etc.), and many of those are temporary and can be resolved by retrying. Very few situations like what you have mentioned is hard failure and retry won't help. Therefore, by default, |
Gotcha, one last question then. Using Would this be expected behavior? |
What error did you get from |
Ping @iwasaki-kenta - do you have any additional information on this? |
I defined a set of custom credentials, which implement
ClientHandshake
andServerHandshake
methods. It appears that the default behavior is that if handshaking fails, a reconnection will be attempted.However, say for example that the handshaking fails as a result of the server claiming that I have provided invalid credentials, or that I have provided credentials that were valid but are unauthorized. How can I forcefully stop retriggering a reconnection to the server in this case?
The text was updated successfully, but these errors were encountered: