From 5d66e9e15b840afd6440720244016ce194550912 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 14 Sep 2026 05:52:29 +0800 Subject: [PATCH] fix: retry interrupted uploads through proxies (#7789) fix: retry proxied upload interruptions --- rustfs/src/connect/client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rustfs/src/connect/client.rs b/rustfs/src/connect/client.rs index 69a4071bb..3d0a5322e 100644 --- a/rustfs/src/connect/client.rs +++ b/rustfs/src/connect/client.rs @@ -657,9 +657,12 @@ pub(crate) fn classify_transport_failure(error: &reqwest::Error, proxy_configure { return Some(TransportFailure::TlsPeer); } + if proxy_configured && message.contains("unsuccessful tunnel") { + return Some(TransportFailure::ProxyRejected); + } source = error.source(); } - proxy_configured.then_some(TransportFailure::ProxyRejected) + None } impl From for ClientError {