-
Notifications
You must be signed in to change notification settings - Fork 21
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
Unknown response causing a permanent transport failure in multiplexing client #28
Comments
Here is a suggestion to modify the
The
|
#29 tries to cover both use cases |
@estaban we can close this right? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the multiplexing client receives an unknown response from the network, it causes a permanent transport failure (
Error::Desynchronized
).This scenario can occur for example when the server replies after the client-side timeout.
In my case, I am using tokio-tower to implement a client over a UDP-based multiplexed protocol. My client sends two requests to two random servers, and waits for the first one to reply. After the first reply is received, the inflight request of the second connection is cleaned up from the tag store (using RAII). However, when the reply from the second server is received, it is unknown to the tag store, and the transport fails with
Error::Desynchronized
.Could we please provide an option to the user to ignore received responses which do not match any inflight requests?
The text was updated successfully, but these errors were encountered: