-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flow control in AsyncSSH redirection to StreamWriter objects
This commit adds support for flow control when an asyncio.StreamWriter is passed to AsyncSSH's process redirect feature. Previously, writes were allowed indefinitely, potentially building up a large buffer in memory if data was being sent faster than it was being consumed. Thanks go to Benjy Wiener for reporting this issue and supplying a test script to reproduce it.
- Loading branch information
Showing
2 changed files
with
56 additions
and
5 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