Files
servo/components
bors-servo 1343c7de50 Auto merge of #21560 - JacksonCoder:chunk-file, r=jdm
Read file URL in chunks

<!-- Please describe your changes on the following line: -->
This is a very straightforward PR: essentially, I replaced a `read_to_end` call that occurs when processing a file URL fetch with a loop that reads the file in chunks (with a `FILE_CHUNK_SIZE` constant that specifies the chunk size, which I've put at 32KB), and then calls `target.process_response_chunk` to process the chunk. The chunk is then appended to the fetch result, and once the end of the file is reached, the result is returned.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21466.

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there isn't really a way to observe this.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21560)
<!-- Reviewable:end -->
2018-09-06 19:52:16 -04:00
..
2018-09-03 12:56:22 +02:00
2018-08-17 11:08:56 +08:00
2018-09-02 08:27:07 +08:00
2018-03-21 13:05:47 +01:00
2018-04-25 10:25:21 +02:00
2018-09-01 13:24:57 +02:00
2018-09-05 10:16:52 +02:00
2018-04-11 21:29:03 +01:00
2018-08-09 18:26:28 +02:00
2018-07-07 12:03:17 +02:00
2018-08-09 18:26:28 +02:00
2018-08-06 07:22:24 +02:00
2018-08-23 20:43:06 +02:00
2018-08-11 01:13:11 +02:00
2018-08-06 07:22:24 +02:00
2018-09-05 22:53:03 +09:00
2018-09-04 10:14:45 +09:00