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

transport: connection opening bugfixes #295

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Kulezi
Copy link
Contributor

@Kulezi Kulezi commented Sep 23, 2022

The goal of this PR is to resolve 3 small bugs, all related to opening connections, especially sharded ones.

The last 2 commits together reduce the integration test logs from ~40k lines to ~800 lines, this is a proof that context done actually cancels operations right away.

Fixes: #289
Fixes: #281
Fixes: #291

@Kulezi Kulezi changed the title Pp/conn opening fixes transport: connection opening bugfixes Sep 23, 2022
WrapConn didn't close connReader and connWriter loops, leaving this
responsibility to its callers, potentially leading to goroutine leaks,
this is mitigated by closing those loops and never returning a non-nil
Conn pointer when WrapConn fails.

Fixes #289
@Kulezi Kulezi marked this pull request as ready for review September 23, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant