mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Read 32kb from the network at a time.
This commit is contained in:
parent
b584944f17
commit
fe74460bae
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