mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
6fe0e30c16
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ use unicase::UniCase;
|
||||||
use uuid;
|
use uuid;
|
||||||
|
|
||||||
fn read_block<R: Read>(reader: &mut R) -> Result<Data, ()> {
|
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) {
|
match reader.read(&mut buf) {
|
||||||
Ok(len) if len > 0 => {
|
Ok(len) if len > 0 => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue