Read 32kb from the network at a time.

This commit is contained in:
Josh Matthews 2017-06-05 13:47:39 -04:00 committed by GitHub
parent b584944f17
commit fe74460bae

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 => {