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:
parent
31296c6108
commit
5e89f1661e
1 changed files with 4 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue