-
Notifications
You must be signed in to change notification settings - Fork 1k
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
0.3.0 Client::connect always returns Ok even if the sever URL does not exist. #403
Comments
I wonder if it is related to #392, will have to take a look later this week. Thanks for opening the issue :) |
Thanks for your response. So the basically |
@DominicWrege no I mean't that that change may have introduced unexpected behavior. |
I experienced the same behavior, thank you for taking the time to fix this <3 |
Before this fix, if the connect phase of the transport failed before ever establishing a connection, we would never return the error until the first call to send a request. This PR changes that behavior to only forward the error to the call method if we have ever made a connection before. If we have never established a connection before then `Reconnect` will return an error on the call to `poll_ready`. Fixes #403
@DominicWrege this should fix it #413, I wrote a small description in the PR for why it was happening. |
Before this fix, if the connect phase of the transport failed before ever establishing a connection, we would never return the error until the first call to send a request. This PR changes that behavior to only forward the error to the call method if we have ever made a connection before. If we have never established a connection before then `Reconnect` will return an error on the call to `poll_ready`. Fixes #403
thx |
Thank you ! works like a charm ! |
Will there be a |
Ok, |
Awesome! Thank you for this incredible response time! |
We like our low p99s 😉 |
Bug Report
Version 0.3.0
Platform
tonic-client-bug v0.1.0 (/tmp/tonic-0.3.0-client-bug)
└── tonic v0.3.0
└── tonic-build v0.2.0
Crates
Description
I excepted that the client returns an
Err
if no connection to the sever could establish.Example Repository: https://github.com/DominicWrege/tonic-0.3.0-client-bug
The text was updated successfully, but these errors were encountered: