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): retry when check out returns closed connection with h2 only #2585

Merged
merged 3 commits into from Jul 21, 2021

Conversation

nox
Copy link
Contributor

@nox nox commented Jun 24, 2021

No description provided.

@nox
Copy link
Contributor Author

nox commented Jun 24, 2021

@seanmonstar Any idea how to test this?

@nox nox force-pushed the retry-h2-checkout branch 4 times, most recently from fa6db10 to 9ec1a4c Compare June 24, 2021 14:51
nox added 2 commits June 24, 2021 16:53
When http2_only is true, we never try to open a new connection if there
is one open already, which means that if the existing connection that
gets checked out of the pool is closed, then the request won't happen.
@seanmonstar
Copy link
Member

Um, testing is probably annoyingly tricky... What's the exact steps that could happen to cause this problem in the first place? Maybe we can mock one of them...

@seanmonstar seanmonstar merged commit 52214f3 into master Jul 21, 2021
@seanmonstar seanmonstar deleted the retry-h2-checkout branch July 21, 2021 00:06
BenxiangGe pushed a commit to BenxiangGe/hyper that referenced this pull request Jul 26, 2021
…hyperium#2585)

When http2_only is true, we never try to open a new connection if there
is one open already, which means that if the existing connection that
gets checked out of the pool is closed, then the request won't happen.
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.

None yet

2 participants