From 3f9c47b60fd829027dd8932c0a1b941132eeb1a9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 10 Jan 2020 08:11:06 -0800 Subject: [PATCH] Add another curl spurious network error Witnessed in a [recent build][1] looks like this is another error that should be safe to retry. [1]: https://github.com/bytecodealliance/wasmtime/pull/788/checks?check_run_id=383658098#step:7:16 --- src/cargo/util/network.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cargo/util/network.rs b/src/cargo/util/network.rs index 4a29d15d00c..d822b5d5df9 100644 --- a/src/cargo/util/network.rs +++ b/src/cargo/util/network.rs @@ -52,6 +52,7 @@ fn maybe_spurious(err: &Error) -> bool { || curl_err.is_recv_error() || curl_err.is_http2_stream_error() || curl_err.is_ssl_connect_error() + || curl_err.is_partial_file() { return true; }