mirrored from https://chromium.googlesource.com/breakpad/breakpad
-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support large files in the Windows variant of HTTPUpload
The STL uses fseek and ftell, which don't work for files with lengths greater than that which a long can accommodate. Avoid std::fstream, and instead use Win32 APIs directly to read files in the HTTP uploader. Additionally: - Halve the heap impact of reading files by reading directly into the request. - Hint to the Windows cache manager that the file will be read sequentially, thereby reducing the impact of the read on the system. Bug: chromium:349736158 Change-Id: I260836946069f6867c20a9ba8ea6043dd041c69c Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5675886 Reviewed-by: Ivan Penkov <[email protected]>
- Loading branch information
Showing
1 changed file
with
46 additions
and
41 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