mirror of
https://github.com/rustfs/rustfs.git
synced 2026-10-03 12:10:50 +00:00
fix: retry interrupted uploads through proxies (#7789)
fix: retry proxied upload interruptions
This commit is contained in:
@@ -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<TransportFailure> for ClientError {
|
||||
|
||||
Reference in New Issue
Block a user