Skip to content

fix(ssh): openTunnel leaks sockets on its failure paths, ignores a missing key file, and dials twice for concurrent callers - #1388

Merged
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/1312-ssh-opentunnel-leaks-singleflight
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 3 commits into
devfrom
issue/1312-ssh-opentunnel-leaks-singleflight

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1312

…ssing key file, and dials twice for concurrent callers

Closes #1312
@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability connections Database connections, URI parsing, pools P2 Medium priority / Parity & Refactoring labels Oct 10, 2026
- read and validate the private key before opening any socket, so a
  missing or empty key file fails without connecting
- track the raw jump host socket and destroy it in the failure path
  instead of relying on the client to close it
- unawaited the pending-tunnel map removal (unawaited_futures)
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit b05b62a into dev Oct 10, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1312-ssh-opentunnel-leaks-singleflight branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working connections Database connections, URI parsing, pools P2 Medium priority / Parity & Refactoring stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant