Skip to content

handle connection discarding in sending #225

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

Conversation

yunhaoling
Copy link
Contributor

@yunhaoling yunhaoling commented Mar 31, 2021

this majorly addresses the issue that sending while in connection discarding state, previously connection would internally loop (from DISCARDING to DISCARDING) until socket finally fails.

now as we moved the connection dowork at the front of _client_run in send client so we're able to detect the DISCARDING state in advance and raise error for backward compatibility and improvement on the flow.

besides. according to AMQP spec, DISCARDING is a variant of CLOSE_SENT and TCP should close for write

@yunhaoling yunhaoling requested a review from annatisch March 31, 2021 20:21
@yunhaoling yunhaoling merged commit daef293 into Azure:master Apr 1, 2021
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.

2 participants