diff --git a/crates/uv-client/src/base_client.rs b/crates/uv-client/src/base_client.rs index a237e981d..bae9cef06 100644 --- a/crates/uv-client/src/base_client.rs +++ b/crates/uv-client/src/base_client.rs @@ -290,7 +290,9 @@ fn is_extended_transient_error(res: &Result // Check for connection reset errors, these are usually `Body` errors which are not retried by default. if let Err(reqwest_middleware::Error::Reqwest(err)) = res { if let Some(io) = find_source::(&err) { - if io.kind() == std::io::ErrorKind::ConnectionReset { + if io.kind() == std::io::ErrorKind::ConnectionReset + || io.kind() == std::io::ErrorKind::UnexpectedEof + { return true; } }