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

client: fix HostClient.Do hangs on ErrConnPoolStrategyNotImpl #1515

Merged
merged 1 commit into from
Mar 14, 2023
Merged

client: fix HostClient.Do hangs on ErrConnPoolStrategyNotImpl #1515

merged 1 commit into from
Mar 14, 2023

Conversation

alexandear
Copy link
Contributor

The PR fixes the situation when on ErrConnPoolStrategyNotImpl error HostClient.Do() hangs out.

This error is unlikely to happen in real life but for the sake of completeness I added c.connLock.Unlock() and the test.

@alexandear alexandear changed the title client: HostClient.Do hangs out when ErrConnPoolStrategyNotImpl client: HostClient.Do hangs on ErrConnPoolStrategyNotImpl Mar 11, 2023
@alexandear alexandear changed the title client: HostClient.Do hangs on ErrConnPoolStrategyNotImpl client: fix HostClient.Do hangs on ErrConnPoolStrategyNotImpl Mar 11, 2023
@erikdubbelboer erikdubbelboer merged commit a281f1d into valyala:master Mar 14, 2023
@erikdubbelboer
Copy link
Collaborator

I agree, very unlikely, but thanks!

@alexandear alexandear deleted the client-missing-unlock branch March 15, 2023 06:30
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