Skip to content

Conversation

@cbenhagen
Copy link
Contributor

Fixes #116

When receiving a SSH_Message_Channel_Close message, the channel was not being properly closed. This caused the stdout stream to remain open, preventing the drain() operation from completing.

The fix:

  1. Let the channel handle the close message properly
  2. Added test to verify channel close behavior

Test case demonstrates that the stdout stream is properly closed when receiving a close message from the remote side.

@cbenhagen cbenhagen force-pushed the fix/116-channel-close branch from fcfd5f9 to be8a401 Compare December 14, 2024 17:39
Fixes TerminalStudio#116

When receiving a SSH_Message_Channel_Close message, the channel was not
being properly closed. This caused the stdout stream to remain open,
preventing the drain() operation from completing.

The fix:
1. Let the channel handle the close message properly
2. Added test to verify channel close behavior
@cbenhagen cbenhagen force-pushed the fix/116-channel-close branch from be8a401 to 519c628 Compare December 14, 2024 17:39
@cbenhagen
Copy link
Contributor Author

@vicajilau did you have a chance to look at this yet?

@vicajilau vicajilau merged commit 759b833 into TerminalStudio:master Feb 8, 2025
@vicajilau
Copy link
Collaborator

Very good job @cbenhagen, publishing a new version in a few moments 🚀

@cbenhagen
Copy link
Contributor Author

Thanks mate!

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.

Streams and channel not closing after receiving SSH_Message_Channel_Close

2 participants