forked from istio/ztunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy: fix handling of blocked writers (istio#1250)
Fixes istio#1196 This adds a test which tests how the copy logic behaves in the face of writers that do not always accept all the data we are writing. This exposes two issues: * If the write is Pending entirely, we dropped the saved buffer. * If we did a partial write, our check was backwards causing us to not save the buffer. Co-authored-by: John Howard <[email protected]>
- Loading branch information
1 parent
25efb39
commit 3f6e6cb
Showing
1 changed file
with
97 additions
and
3 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