-
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.
Fix flow control for AsyncFileWriter and StreamWriter
This commit is a follow up to f2020ed, adding proper back pressure when output is redirected to an AsyncFileWriter or StreamWriter and data is arriving on the SSH channel faster than these writers can consume it. Once the queue of outstanding data begins to grow, reading from the SSH channel will be paused to allow the queue to drain somewhat before continuing, limiting the amount of memory needed.
- Loading branch information
Showing
2 changed files
with
77 additions
and
34 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