Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XrdTpc: Factor out recursive writes.
This separates the writing methods of the stream to avoid potential recursion when dumping buffered data. This also allows the buffer to accept partial data so the beginning offset of the buffer is always a multiple of the buffer size (i.e., the buffer offsets always stay MB-aligned). With this, a single incoming buffer from curl may be split across two entries in order to keep alignment.
- Loading branch information
Showing
2 changed files
with
49 additions
and
23 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