-
- Downloads
Refactor MatrixFederationAgent to retry SRV.
This refactors MatrixFederationAgent to move the SRV lookup into the endpoint code, this has two benefits: 1. Its easier to retry different host/ports in the same way as HostnameEndpoint. 2. We avoid SRV lookups if we have a free connection in the pool
Showing
- synapse/http/federation/matrix_federation_agent.py 170 additions, 186 deletionssynapse/http/federation/matrix_federation_agent.py
- synapse/http/federation/srv_resolver.py 32 additions, 3 deletionssynapse/http/federation/srv_resolver.py
- tests/http/federation/test_matrix_federation_agent.py 60 additions, 3 deletionstests/http/federation/test_matrix_federation_agent.py
- tests/http/federation/test_srv_resolver.py 6 additions, 2 deletionstests/http/federation/test_srv_resolver.py
Loading
Please register or sign in to comment