diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-06-05 13:47:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 13:47:39 -0400 |
commit | fe74460baed3ff059cd776b3ab01358ee0b308c7 (patch) | |
tree | 3431b5f34f0467ac037663525516445d1f0967f1 | |
parent | b584944f1731c71920abf9a03e1f3cd1e790f7c4 (diff) | |
download | servo-fe74460baed3ff059cd776b3ab01358ee0b308c7.tar.gz servo-fe74460baed3ff059cd776b3ab01358ee0b308c7.zip |
Read 32kb from the network at a time.
-rw-r--r-- | components/net/http_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 90f0708c234..570144e43de 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -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 => { |