fix: available_error_cache poisoning

This commit is contained in:
Alpha Nerd 2026-04-07 09:32:53 +02:00
parent 5170162a80
commit 81013ec3b1
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M

View file

@ -1007,9 +1007,6 @@ class fetch:
# If anything goes wrong we cannot reply details # If anything goes wrong we cannot reply details
message = _format_connection_issue(request_url, e) message = _format_connection_issue(request_url, e)
print(f"[fetch.endpoint_details] {message}") print(f"[fetch.endpoint_details] {message}")
# Record failure so subsequent calls skip this endpoint briefly
async with _available_error_cache_lock:
_available_error_cache[endpoint] = time.time()
return [] return []
def ep2base(ep): def ep2base(ep):