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

fix(client): distinguish the H2CheckoutIsClosed error #3008

Open
wants to merge 1 commit into
base: 0.14.x
Choose a base branch
from

Conversation

jiangshibiao
Copy link

I have occurred a bug when using hyper and reqwest to send HTTP requests, and I have tried to fix it.

Please first look at the case below the modified code. If the checkout occurs error, it may change to H2CheckoutIsClosed error so that the retry mechanism can be done outside. However, the same logic doesn't appear in the above case, so the retry mechanism can not be activated anymore if the checkout is closed.

I'm not sure which error message (checkout error/connecting error) is more proper to be raised, and it seems not so important.

@seanmonstar
Copy link
Member

I think this looks correct. Have you found that using this code fixes the case you noticed? What did it fix?

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