Skip to content

Commit

Permalink
Read 32kb from the network at a time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Jun 5, 2017
1 parent b584944 commit fe74460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/net/http_loader.rs
Expand Up @@ -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 => {
Expand Down

0 comments on commit fe74460

Please sign in to comment.