Auto merge of #17169 - servo:jdm-patch-2, r=SimonSapin

Read 32kb from the network at a time.

Now that https://github.com/servo/servo/pull/16989 has merged, this might actually work.

<!-- 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/17169)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-06-05 18:18:30 -07:00 committed by GitHub
commit 6fe0e30c16

View file

@ -53,7 +53,7 @@ use unicase::UniCase;
use uuid;
fn read_block<R: Read>(reader: &mut R) -> Result<Data, ()> {
let mut buf = vec![0; 1024];
let mut buf = vec![0; 32768];
match reader.read(&mut buf) {
Ok(len) if len > 0 => {