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

Don't set low speed limits for curl #914

Merged
merged 1 commit into from
Jan 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/download/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ pub mod curl {
// Take at most 30s to connect
try!(handle.connect_timeout(Duration::new(30, 0)).chain_err(|| "failed to set connect timeout"));

// Fail if less than 10 bytes are transferred every 30 seconds
try!(handle.low_speed_limit(10).chain_err(|| "failed to set low speed limit"));
try!(handle.low_speed_time(Duration::new(30, 0)).chain_err(|| "failed to set low speed time"));

{
let cberr = RefCell::new(None);
let mut transfer = handle.transfer();
Expand Down