Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read file URL in chunks #21560

Merged
merged 3 commits into from Sep 7, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Tidy things up

  • Loading branch information
InquisitivePenguin committed Sep 6, 2018
commit 430ba866685bd779626961926dffb0f60dbcf797
@@ -27,11 +27,10 @@ use std::fmt;
use std::fs::File;
use std::io::{BufReader, BufRead};
use std::mem;
use std::sync::mpsc::channel;
use std::str;
use std::sync::{Arc, Mutex};
use std::sync::atomic::Ordering;
use std::sync::mpsc::{Sender, Receiver};
use std::sync::mpsc::{Sender, Receiver, channel};
use std::thread;
use subresource_integrity::is_response_integrity_valid;

@@ -516,7 +515,7 @@ fn scheme_fetch(request: &mut Request,
let buffer_len = buffer.len();
if let ResponseBody::Receiving(ref mut body) = *res_body.lock().unwrap() {
body.extend_from_slice(&buffer);
let _ = done_sender.send(Data::Payload(buffer.clone()));
let _ = done_sender.send(Data::Payload(buffer));
}
buffer_len
};
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.