Skip to content

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