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

Fix/read goroutine fixups #175

Merged
merged 9 commits into from
Apr 5, 2024
Merged

Fix/read goroutine fixups #175

merged 9 commits into from
Apr 5, 2024

Conversation

carlmontanari
Copy link
Contributor

No description provided.

@carlmontanari carlmontanari force-pushed the fix/read-goroutine-fixups branch from e0b3abc to ecbeb6f Compare April 3, 2024 16:40
netixx and others added 6 commits April 4, 2024 13:35
System transport can get stuck on the Read call because of
pty implementation details (see #174)
for more details.

This makes sure that we kill the SSH process when the transport
is closed, and in turn makes sure that the rest of the components (channel, drivers)
can shutdown properly.

I also added a test simulating a blocking (stuck) SSH server
and a non blokcing SSH server (non blocking showed that it's fine
to kill an already defunct process).

Signed-off-by: Francois Espinet <[email protected]>
Make sure we reap SSH process on Close()
@carlmontanari carlmontanari marked this pull request as ready for review April 5, 2024 16:04
@carlmontanari carlmontanari merged commit 9d7f355 into main Apr 5, 2024
0 of 28 checks passed
@carlmontanari carlmontanari deleted the fix/read-goroutine-fixups branch April 5, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants