Skip to content

Conversation

@un-def
Copy link
Collaborator

@un-def un-def commented Nov 14, 2025

No description provided.

@un-def un-def requested a review from jvstme November 14, 2025 15:19
@un-def un-def merged commit a172672 into master Nov 19, 2025
28 checks passed
@un-def un-def deleted the pr_ssh_tunnel_close_error_logging branch November 19, 2025 07:59
un-def added a commit that referenced this pull request Nov 20, 2025
When error logging was added to SSHTunnel.close()[1], it was discovered
that SSHAttach.detach() is called multiple times on detach.
Although this is harmless as long as this method is idempotent (and it is),
this patch ensures that detach() is no-op when called more than one
time, removing ERROR level log noise.

As a side-effect, detaching SSHAttach that reuses SSHTunnel no longer
kills "master" SSHAttach, meaning that one can `dstack attach` multiple
times and detach independently (detaching from the "master" attach still
kicks out all other attaches).

[1]: #3296
@un-def un-def mentioned this pull request Nov 20, 2025
un-def added a commit that referenced this pull request Nov 21, 2025
When error logging was added to SSHTunnel.close()[1], it was discovered
that SSHAttach.detach() is called multiple times on detach.
Although this is harmless as long as this method is idempotent (and it is),
this patch ensures that detach() is no-op when called more than one
time, removing ERROR level log noise.

As a side-effect, detaching SSHAttach that reuses SSHTunnel no longer
kills "master" SSHAttach, meaning that one can `dstack attach` multiple
times and detach independently (detaching from the "master" attach still
kicks out all other attaches).

[1]: #3296
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.

3 participants