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: Close channel correctly when receiving SSH_Message_Channel_Close #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbenhagen
Copy link

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
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
1 participant