Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

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 force-pushed the pp/conn-opening-fixes branch from 76b095d to cb19b3c Compare September 23, 2022 14:43
@Kulezi Kulezi marked this pull request as ready for review September 23, 2022 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

transport: pool, stop shard refill faster when context is done transport: WrapConn goroutine leak conn: OpenShardConn makes unnecessary retries

2 participants