Skip to content

Commit 189f14f

Browse files
committed
Revert removal of default-value for curl low-speed-time
In case no timeout is specified a default value is needed.
1 parent f88adb0 commit 189f14f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/ops/registry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ pub fn configure_http_handle(config: &Config, handle: &mut Easy) -> CargoResult<
367367
// connect phase as well as a "low speed" timeout so if we don't receive
368368
// many bytes in a large-ish period of time then we time out.
369369
handle.connect_timeout(Duration::new(30, 0))?;
370+
handle.low_speed_time(Duration::new(30, 0))?;
370371
handle.low_speed_limit(http_low_speed_limit(config)?)?;
371372
if let Some(proxy) = http_proxy(config)? {
372373
handle.proxy(&proxy)?;

0 commit comments

Comments
 (0)