Retry well-known lookup before expiry.
This gives a bit of a grace period where we can attempt to refetch a remote `well-known`, while still using the cached result if that fails. Hopefully this will make the well-known resolution a bit more torelant of failures, rather than it immediately treating failures as "no result" and caching that for an hour.
Showing
- synapse/http/federation/well_known_resolver.py 60 additions, 22 deletionssynapse/http/federation/well_known_resolver.py
- synapse/util/caches/ttlcache.py 5 additions, 3 deletionssynapse/util/caches/ttlcache.py
- tests/http/federation/test_matrix_federation_agent.py 69 additions, 0 deletionstests/http/federation/test_matrix_federation_agent.py
- tests/util/caches/test_ttlcache.py 2 additions, 2 deletionstests/util/caches/test_ttlcache.py
Loading
Please register or sign in to comment