-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_transfer: Improve Python stream reopening and closing
This makes several changes to the way RPC streams are handled in the Python transfer client: - Limits RPC stream reopen attempts to a maximum number, after which ongoing transfers should fail. - Refactors stream operations into a wrapper class to minimize duplicate code between read/write transfers. - Improve logging around stream reopening. - Automatically close RPC streams when the last transfer running on them completes. Tested: Verified successful operation of multiple back-to-back transfers on real hardware. Change-Id: Ie4b3a9faacce2f2916840c9e1e9aec2cd03d6f41 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/184931 Presubmit-Verified: CQ Bot Account <[email protected]> Reviewed-by: Jordan Brauer <[email protected]> Commit-Queue: Alexei Frolov <[email protected]>
- Loading branch information
Showing
2 changed files
with
158 additions
and
84 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