memory (disco): handle remote-server-timeout in get_infos errback:

`remote-server-timeout` is treated like `remote-server-not-found`.
This commit is contained in:
Goffi 2026-07-05 17:41:49 +02:00
commit 5e89f1661e

View file

@ -318,7 +318,10 @@ class Discovery:
fail = failure.Failure(exceptions.TimeOutError(str(fail.value)))
elif fail.check(StanzaError):
stanza_error = fail.value
if stanza_error.condition == "remote-server-not-found":
if stanza_error.condition in (
"remote-server-not-found",
"remote-server-timeout",
):
# Mark the server as unreachable (store as domain JID)
server_jid = jid.JID(jid_.host)
self._jid_disco_cache[server_jid] = (None, time.time())