forked from paramiko/paramiko
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new ChannelFile subclass for stdin calls shutdown_write on close()
implement paramiko#322 SSHClient.exec_command() previously returned a naive ChannelFile object for its stdin value; such objects don't know to properly shut down the remote end's stdin when they `.close()` - this leads to issues when running remote commands that read from stdin. A new subclass, ChannelStdinFile, has been created which closes remote stdin when it itself is closed. SSHClient.exec_command() has been updated to use that class for its stdin return value. Thanks to Brandon Rhodes for the report & steps to reproduce.
- Loading branch information
1 parent
ea456dd
commit 66432e2
Showing
5 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters