summary refs log tree commit diff
path: root/synapse/http/federation/srv_resolver.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reduce the number of "untyped defs" (#12716)David Robertson2022-05-121-2/+2
|
* Additional type hints for the proxy agent and SRV resolver modules. (#10608)Dirk Klimpel2021-08-181-20/+25
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-2/+2
|
* Convert the federation agent and related code to async/await. (#7874)Patrick Cloke2020-07-231-6/+4
|
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-1/+1
| | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* Fix off by one error in SRV result shufflingErik Johnston2019-08-271-8/+13
|
* Remove now unused pick_server_from_listErik Johnston2019-08-201-30/+0
|
* Fixup _sort_server_list to be slightly more efficientErik Johnston2019-08-201-2/+11
| | | | | Also document that we are using the algorithm described in RFC2782 and ensure we handle zero weight correctly.
* Refactor MatrixFederationAgent to retry SRV.Erik Johnston2019-08-151-3/+32
| | | | | | | | 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
* Replace returnValue with return (#5736)Amber Brown2019-07-231-4/+4
|
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-17/+20
|
* put resolve_service in an objectRichard van der Hoff2019-01-221-60/+73
| | | | this makes it easier to stub things out for tests.
* Require that service_name be a byte stringRichard van der Hoff2019-01-221-4/+4
| | | | it is only ever a bytes now, so let's enforce that.
* Kill off matrix_federation_endpointRichard van der Hoff2019-01-221-1/+0
| | | | this thing is now redundant.
* MatrixFederationAgentRichard van der Hoff2019-01-221-0/+33
| | | | | Pull the magic that is currently in matrix_federation_endpoint and friends into an agent-like thing
* Refactor and bugfix for resove_service (#4427)Richard van der Hoff2019-01-221-0/+124