feat: Clear destinations cache when a remote is potentially stale

This commit is contained in:
timedout authored and Ellis Git committed 2026-08-20 00:57:11 +00:00
1 parent 53db584741
commit ef5bf7c977
3 files changed
+55 -9

No files matched your search

+2 -1
View File
@@ -187,7 +187,8 @@ impl super::Service {
.await,
| Err(error) => {
if error.is_connect() {
debug_info!("{dest} is unhealthy due to a connect error");
debug_info!("{dest} is unhealthy & stale due to a connect error");
self.mark_destination_stale(dest);
self.hit_unhealthy(dest.to_owned());
}
Err(handle_error(actual, &method, &url, error).expect_err("always returns error"))