fix: Set initial backoff time to 90 days immediately

As per the MSC:
> This MSC recommends homeservers should wait a minimum of 24 hours
> and should wait no longer than 90 days, balancing the need to respect
> the server's intent to be offline whilst allowing for potential future
> changes in server operation or domain ownership.

And as per nex:
> Technically the MSC said it should be up to 90 days, but they'll never
> make me parse cache-control!
This commit is contained in:
theS1LV3R authored and Ellis Git committed 2026-11-12 14:26:17 +00:00
1 parent 326348ec1a
commit 23a51bcf96
3 files changed
+26 -15

No files matched your search

+2 -2
View File
@@ -149,10 +149,10 @@ impl Service {
{
debug!("{dest} is now unhealthy & stale due to a connect error: {e:?}");
self.services.federation.mark_destination_stale(dest);
self.services.federation.hit_unhealthy(dest.clone());
self.services.federation.hit_unhealthy(dest.clone(), None);
} else if e.status_code() != StatusCode::OK {
debug!("{dest} is now unhealthy due to error response: {e:?}");
self.services.federation.hit_unhealthy(dest.clone());
self.services.federation.hit_unhealthy(dest.clone(), None);
}
}
Self::handle_response_err(dest, statuses, &e);