summary refs log tree commit diff
path: root/synapse/http/matrixfederationclient.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
* Merge remote-tracking branch 'gitlab/clokep/license-license' into new_developErik Johnston2023-12-131-10/+16
|\
| * Update license headersPatrick Cloke2023-11-211-10/+16
* | Request & follow redirects for /media/v3/download (#16701)Patrick Cloke2023-11-291-20/+57
|/
* Use full GitHub links instead of bare issue numbers. (#16637)Patrick Cloke2023-11-151-6/+8
* Don't reset retry timers on "valid" error codes (#16221)Erik Johnston2023-09-041-0/+8
* Bump ruff from 0.0.277 to 0.0.286 (#16198)dependabot[bot]2023-08-291-1/+1
* Re-introduce the outbound federation proxy (#15913)Eric Eastwood2023-07-181-10/+132
* Revert "Federation outbound proxy" (#15910)Eric Eastwood2023-07-101-122/+10
* Federation outbound proxy (#15773)Eric Eastwood2023-07-051-10/+122
* Allow for the configuration of max request retries and min/max retry delays i...Mathieu Velten2023-06-211-21/+38
* Switch from `matrix://` to `matrix-federation://` scheme for internal Synapse...Eric Eastwood2023-06-201-1/+8
* Revert "Allow for the configuration of max request retries and min/max retry ...Mathieu Velten2023-06-141-12/+9
* Allow for the configuration of max request retries and min/max retry delays i...Shay2023-06-091-9/+12
* Add context for when/why to use the `long_retries` option when sending Federa...Eric Eastwood2023-06-061-2/+9
* Rename blacklist/whitelist internally. (#15620)Patrick Cloke2023-05-191-7/+7
* Finish type hints for federation client HTTP code. (#15465)Patrick Cloke2023-04-241-18/+58
* Small fixes to `MatrixFederationHttpClient` docstrings (#15148)Andrew Morgan2023-02-271-7/+9
* Use mypy 1.0 (#15052)David Robertson2023-02-161-1/+1
* Remove redundant types from comments. (#14412)Patrick Cloke2022-11-161-2/+1
* Validate federation destinations and log an error if server name is invalid. ...Shay2022-07-201-0/+9
* Fix `destination_is` errors seen in sentry. (#13041)David Robertson2022-06-141-2/+5
* Merge tag 'v1.60.0rc2' into developSean Quah2022-05-271-0/+11
|\
| * Close `ijson` coroutines ourselves instead of letting the GC close them (#12875)Sean Quah2022-05-271-0/+11
* | Allow bigger responses to `/federation/v1/state` (#12877)Richard van der Hoff2022-05-251-22/+7
|/
* Make handling of federation Authorization header (more) compliant with RFC723...Hubert Chathi2022-05-181-1/+1
* Reduce the number of "untyped defs" (#12716)David Robertson2022-05-121-12/+19
* Immediately retry any requests that have backed off when a server comes back ...Erik Johnston2022-05-101-2/+13
* Implement MSC3383: include destination in X-Matrix auth header (#11398)Jan Christian Grünhage2022-04-191-2/+10
* Unify HTTP query parameter type hints (#12415)David Robertson2022-04-081-22/+13
* Remove unnecessary pass statements. (#12206)Patrick Cloke2022-03-111-2/+0
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
* Faster joins: Support for calling `/federation/v1/state` (#12013)Richard van der Hoff2022-02-221-1/+49
* Adds misc missing type hints (#11953)Patrick Cloke2022-02-111-2/+1
* Use auto_attribs/native type hints for attrs classes. (#11692)Patrick Cloke2022-01-131-9/+9
* Use HTTPStatus constants in place of literals in `synapse.http` (#11543)Dirk Klimpel2021-12-091-1/+2
* Add type hints for most `HomeServer` parameters (#11095)Sean Quah2021-10-221-2/+6
* Use direct references for configuration variables (part 6). (#10916)Patrick Cloke2021-09-291-5/+5
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-2/+3
* Remove unnecessary parentheses around tuples returned from methods (#10889)Andrew Morgan2021-09-231-1/+1
* Prevent logging context going missing on federation request timeout (#10810)Sean Quah2021-09-141-4/+13
* support federation queries through http connect proxy (#10475)Dirk Klimpel2021-08-111-9/+3
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-6/+6
* Fix a number of logged errors caused by remote servers being down. (#10400)Erik Johnston2021-07-151-0/+28
* Fix 'ip_range_whitelist' not working for federation servers (#10115)Michael Kutzner2021-06-151-1/+3
* Clean up the interface for injecting opentracing over HTTP (#10143)Richard van der Hoff2021-06-091-7/+3
* Allow response of `/send_join` to be larger. (#10093)Erik Johnston2021-05-281-1/+13
* Use ijson to parse the response to `/send_join`, reducing memory usage. (#9958)Erik Johnston2021-05-201-35/+125
* Limit the size of HTTP responses read over federation. (#9833)Richard van der Hoff2021-04-231-6/+37
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Bump black configuration to target py36 (#9781)Dan Callahan2021-04-131-1/+1
* Retry 5xx errors in federation client (#9567)Erik Johnston2021-03-091-3/+4
* Create a SynapseReactor type which incorporates the necessary reactor interfa...Patrick Cloke2021-03-081-4/+4
* Fix additional type hints from Twisted upgrade. (#9518)Patrick Cloke2021-03-031-3/+3
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-6/+14
* Properly raise an exception when the body exceeds the max size. (#9145)Patrick Cloke2021-01-181-1/+1
* Handle bad JSON data being returned from the federation API. (#9070)Patrick Cloke2021-01-121-0/+10
* Add a maximum size for well-known lookups. (#8950)Patrick Cloke2020-12-161-2/+11
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-021-18/+8
* Add additional type hints to HTTP client. (#8812)Patrick Cloke2020-11-251-64/+10
* Add type hints to matrix federation client / agent. (#8806)Patrick Cloke2020-11-251-147/+157
* Better error message when a remote resource uses invalid Content-Type (#8719)Andrew Morgan2020-11-111-2/+8
* Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-231-3/+3
* Fix handling of connection timeouts in outgoing http requests (#8400)Richard van der Hoff2020-09-291-12/+43
* A pair of tiny cleanups in the federation request code. (#8401)Richard van der Hoff2020-09-281-2/+0
* Use slots in attrs classes where possible (#8296)Patrick Cloke2020-09-141-1/+1
* Fix the exception that is raised when invalid JSON is encountered. (#8291)Patrick Cloke2020-09-101-1/+4
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-3/+3
* Reduce INFO logging (#8050)Erik Johnston2020-08-111-23/+71
* Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-40/+32
* Ensure the msg property of HttpResponseException is a string. (#7979)Patrick Cloke2020-07-291-3/+4
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
* Stop passing bytes when dumping JSON (#7799)Patrick Cloke2020-07-081-3/+7
* Include a user agent in federation requests. (#7677)Patrick Cloke2020-06-161-1/+8
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-7/+5
* Fix exception reporting due to HTTP request errors. (#7556)Erik Johnston2020-05-221-0/+7
* remove miscellaneous PY2 codeRichard van der Hoff2020-05-151-6/+2
* Fix b'GET' in prometheus metrics (#7503)Richard van der Hoff2020-05-141-2/+4
* Reduce federation logging on success (#7321)Michael Kaye2020-04-221-8/+14
* Fix outbound federation request metrics (#6795)Erik Johnston2020-01-281-0/+4
* Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-121-1/+1
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-5/+5
* Trace how long it takes for the send trasaction to complete, including retrys...Jorik Schellekens2019-09-051-1/+0
* Opentracing misc (#5856)Jorik Schellekens2019-08-161-10/+13
* Replace returnValue with return (#5736)Amber Brown2019-07-231-8/+8
* Add basic opentracing support (#5544)Jorik Schellekens2019-07-111-4/+24
* 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-121/+121
* Improve docstrings on MatrixFederationClient. (#5332)Richard van der Hoff2019-06-041-16/+55
* Remove spurious debug from MatrixFederationHttpClient.get_json (#5287) v0.99.5.1.dev0Richard van der Hoff2019-05-291-4/+0
* Add ability to blacklist ip ranges for federation traffic (#5043)Andrew Morgan2019-05-131-10/+38
* Make federation endpoints more tolerant of trailing slashes v2 (#4935)Andrew Morgan2019-03-261-0/+1
* Clean up backoff_on_404 and metehod callsAndrew Morgan2019-03-211-9/+13
* kwargs doesn't like commas on calling funcs either. TILAndrew Morgan2019-03-201-2/+2
* lintAndrew Morgan2019-03-201-2/+6
* New test, fix issuesAndrew Morgan2019-03-201-49/+28
* Fix comments. v0.99.2 -> v0.99.3Andrew Morgan2019-03-201-5/+5
* Just return if not doing any trailing slash shennanigansAndrew Morgan2019-03-201-0/+2
* lintAndrew Morgan2019-03-181-1/+1
* Better exception handlingAndrew Morgan2019-03-181-16/+17
* Correct var nameAndrew Morgan2019-03-131-2/+2
* receiving a 400 caused an exception. handle itAndrew Morgan2019-03-131-5/+12
* is this what purgatory feels likeAndrew Morgan2019-03-131-3/+3
* i should have given up x2Andrew Morgan2019-03-131-18/+13
* i should have given upAndrew Morgan2019-03-131-1/+1
* there comes a time when you should give up. but you dontAndrew Morgan2019-03-131-1/+1
* as aboveAndrew Morgan2019-03-131-2/+4
* no kwargs todayAndrew Morgan2019-03-131-7/+12
* Or perhaps I was the one who was drunkAndrew Morgan2019-03-131-6/+3
* go home python, you're drunkAndrew Morgan2019-03-131-4/+2
* Syntax checker is borkAndrew Morgan2019-03-131-6/+5
* Destructure againAndrew Morgan2019-03-131-7/+8
* Are you happy nowAndrew Morgan2019-03-131-2/+2
* Syntax testAndrew Morgan2019-03-131-6/+5
* Remove testing codeAndrew Morgan2019-03-131-3/+0
* Add missing docstring detailAndrew Morgan2019-03-131-1/+1
* Fix syntax issuesAndrew Morgan2019-03-131-7/+10
* Switch to wrapper function around _send_requestAndrew Morgan2019-03-131-32/+71
* Retry on 400:M_UNRECOGNIZEDAndrew Morgan2019-03-131-6/+10
* Fix paranthesis indentAndrew Morgan2019-03-131-1/+2
* Add workaround noteAndrew Morgan2019-03-131-10/+4
* Cleaner way of implementing trailing slashesAndrew Morgan2019-03-121-63/+52
* Retry certain federation requests on 404Andrew Morgan2019-03-081-0/+45
* Fix TaskStopped exceptions when outbound requests time out (#4690)Richard van der Hoff2019-02-201-15/+2
* Move ClientTLSOptionsFactory init out of refresh_certificates (#4611)Richard van der Hoff2019-02-111-2/+2
* Fix noisy "twisted.internet.task.TaskStopped" errors in logsRichard van der Hoff2019-02-011-2/+15
* Fix Host header sent by MatrixFederationAgent (#4468)Richard van der Hoff2019-01-251-1/+0
* Make MatrixFederationClient use MatrixFederationAgentRichard van der Hoff2019-01-221-27/+10
* Remove redundant WrappedConnection (#4409)Richard van der Hoff2019-01-181-15/+15
* sign_request -> build_auth_headers (#4408)Richard van der Hoff2019-01-171-12/+11
* Fixup docstrings for matrixfederationclientErik Johnston2019-01-091-68/+73
* Use RequestSendFailed when fail to parse content type headersErik Johnston2019-01-081-5/+5
* Refactor request sending to have better excpetions (#4358)Erik Johnston2019-01-081-33/+72
* Merge pull request #3969 from turt2live/travis/fix-federated-group-requestsTravis Ralston2018-10-231-6/+6
|\
| * Fix exception documentation in matrixfederationclient.pyTravis Ralston2018-09-261-6/+6
* | Various cleanups in the federation client code (#4031)Richard van der Hoff2018-10-161-38/+40
|/
* Update to use new timeout function everywhere.Erik Johnston2018-09-191-10/+15
* Destination is a stringTravis Ralston2018-09-181-4/+4
* Refactor matrixfederationclient to fix logging (#3906)Richard van der Hoff2018-09-181-149/+236
* Fix some b'abcd' noise in logs and metricsRichard van der Hoff2018-09-171-1/+4
* Add an awful secondary timeout to fix wedged requestsErik Johnston2018-09-141-0/+11
* Merge pull request #3872 from matrix-org/hawkowl/timeouts-2Erik Johnston2018-09-141-1/+3
|\
| * we do that higher upAmber Brown2018-09-141-0/+1
| * buffer?Amber Brown2018-09-141-1/+2
* | Measure outbound requestsErik Johnston2018-09-141-3/+6
|/
* Attempt to figure out what's going on with timeouts (#3857)Amber Brown2018-09-141-56/+42
* Log outbound requests when we retryErik Johnston2018-09-121-75/+74
* Timeout reading body for outbound HTTP requestsErik Johnston2018-09-121-7/+45
* Port http/ to Python 3 (#3771)Amber Brown2018-09-061-120/+84
* Fix bug when federation_domain_whitelist is an emtpy listErik Johnston2018-08-241-1/+1
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
* Merge pull request #3439 from vojeroen/send_sni_for_federation_requestsRichard van der Hoff2018-08-101-2/+2
|\
| * Merge remote-tracking branch 'upstream/develop' into send_sni_for_federation_...Jeroen2018-07-141-24/+24
| |\
| * \ Merge branch 'develop' into send_sni_for_federation_requestsJeroen2018-07-091-2/+1
| |\ \
| * | | formatting changes for pep8Jeroen2018-06-251-1/+1
| * | | send SNI for federation requestsJeroen2018-06-241-2/+2
* | | | include known room versions in outgoing make_joinsRichard van der Hoff2018-08-061-2/+5
| |_|/ |/| |
* | | run isortAmber Brown2018-07-091-24/+24
| |/ |/|
* | Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-2/+1
|/
* Pass around the reactor explicitly (#3385)Amber Brown2018-06-221-2/+3
* Merge pull request #3276 from matrix-org/dbkr/unbindDavid Baker2018-06-111-2/+23
|\
| * pep8David Baker2018-06-061-3/+3
| * More doc fixesDavid Baker2018-06-061-2/+2
| * fix pep8David Baker2018-06-051-3/+5
| * doc fixesDavid Baker2018-06-051-6/+6
| * DocstringDavid Baker2018-06-041-0/+14
| * Merge remote-tracking branch 'origin/develop' into dbkr/unbindDavid Baker2018-05-241-3/+5
| |\
| * | Hit the 3pid unbind endpoint on deactivationDavid Baker2018-05-231-2/+7
* | | Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-281-3/+5
|\ \ \ | | |/ | |/|
| * | Replace some more comparisons with sixAdrian Tschira2018-05-191-3/+5
| |/
* | cleanupAmber Brown2018-05-221-2/+4
* | replacing portionsAmber Brown2018-05-211-10/+4
|/
* Merge pull request #3108 from NotAFile/py3-six-urlparseRichard van der Hoff2018-04-301-2/+1
|\
| * Use six.moves.urlparseAdrian Tschira2018-04-151-2/+1
* | Backport deferred.addTimeoutRichard van der Hoff2018-04-271-3/+4
* | Use deferred.addTimeout instead of time_bound_deferredRichard van der Hoff2018-04-231-17/+18
|/
* use PUT instead of POST for federating groups/m.join_policyKrombel2018-04-061-1/+5
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-1/+27
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
* Merge branch 'develop' into erikj/groups_mergedDavid Baker2017-10-021-7/+6
|\
| * Improve logging of failures in matrixfederationclientRichard van der Hoff2017-09-281-7/+6
* | Add DELETEErik Johnston2017-07-181-0/+46
* | Add 'args' param to post_jsonErik Johnston2017-07-181-9/+15
|/
* Fix some lies, and other clarifications, in docstringsRichard van der Hoff2017-04-211-7/+14
* try not to drop context after federation requestsRichard van der Hoff2017-03-231-12/+16
* Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-7/+26
* push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-101/+127
* MatrixFederationHttpClient: clean upRichard van der Hoff2017-03-231-17/+24
* Fix routing loop when fetching remote mediaRichard van der Hoff2017-03-131-3/+12
* Respect long_retries param and default to offErik Johnston2016-12-291-2/+2
* Clean upErik Johnston2016-12-291-5/+0
* Wrap connections in an N minute timeout to ensure they get reaped correctlyErik Johnston2016-12-291-1/+7
* More intelligent Content-Type parsingRichard van der Hoff2016-11-301-18/+30
* Add a timeout parameter for end2end key queries.Mark Haines2016-09-121-2/+9
* Clean up TransactionQueueErik Johnston2016-08-101-3/+1
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
* copyrightsMatthew Hodgson2016-01-071-1/+1
* Fix typoErik Johnston2015-11-201-2/+2
* Don't limit connections to perspective serversErik Johnston2015-11-201-1/+4
* Use min and not max to set an upper bound on retry intervalErik Johnston2015-11-201-2/+2
* Add commentErik Johnston2015-11-171-0/+2
* Only retry federation requests for a long time for background requestsErik Johnston2015-11-171-7/+19
* Implement required method 'resumeProducing'Erik Johnston2015-11-171-0/+3
* Slightly more aggressive retry timers at HTTP levelErik Johnston2015-11-171-2/+3
* Retry dead servers a lot less oftenErik Johnston2015-11-021-2/+8
* Allow configuration to ignore invalid SSL certsDaniel Wagner-Hall2015-09-091-2/+2
* Remove syutil dependency in favour of smaller single-purpose librariesMark Haines2015-08-241-2/+2
* PEP8Erik Johnston2015-08-131-1/+0
* Merge branch 'develop' into markjh/twisted-15Mark Haines2015-08-121-68/+77
|\
| * Fix log context when sending requestsErik Johnston2015-06-191-28/+30
| * Remove stale debug linesErik Johnston2015-06-191-10/+0
| * Add IDs to outbound transactionsErik Johnston2015-06-191-53/+71
* | Use Twisted-15.2.1, Use Agent.usingEndpointFactory rather than implement our ...Mark Haines2015-06-011-50/+25
|/
* Correctly pass connection pool parameterErik Johnston2015-05-281-1/+1
* Up maxPersistentPerHost countErik Johnston2015-05-281-0/+1
* Use connection pool for federation connectionsErik Johnston2015-05-281-2/+3
* Add doc stringsErik Johnston2015-05-221-0/+3
* Add a timeout param to get_eventErik Johnston2015-05-191-5/+8
* Change the way we do logging contexts so that they survive divergencesErik Johnston2015-05-081-16/+16
* Appease pep8Paul "LeoNerd" Evans2015-03-121-3/+7
* Use _ instead of . as a metric namespacing separator, for PrometheusPaul "LeoNerd" Evans2015-03-121-2/+2
* Rename Metrics' "keys" to "labels"Paul "LeoNerd" Evans2015-03-121-2/+2
* Add vector counters to HTTP clients and servers; count the requests by method...Paul "LeoNerd" Evans2015-03-121-3/+25
* Merge branch 'develop' of github.com:matrix-org/synapse into release-v0.7.1Erik Johnston2015-02-181-2/+2
|\
| * Use git aware version string in User-Agent and Server headersErik Johnston2015-02-181-2/+2
* | Don't convert DNSLookupError to a 4xx SynapseErrorErik Johnston2015-02-181-1/+1
|/
* Add .__name__ after type(e)Erik Johnston2015-02-181-2/+2
* Fix up ResponseNeverReceived to strErik Johnston2015-02-181-9/+11
* strings.join() expects iterable of stringsErik Johnston2015-02-181-1/+1
* Remove unused importErik Johnston2015-02-171-1/+0
* Make matrixfederationclient log more nicelyErik Johnston2015-02-171-11/+12
* Merge pull request #61 from matrix-org/timeout-federation-requestsErik Johnston2015-02-111-1/+7
|\
| * Merge branch 'develop' of github.com:matrix-org/synapse into timeout-federati...Erik Johnston2015-02-111-5/+73
| |\
| * | PEP8Erik Johnston2015-02-111-1/+0
| * | Move time_bound_deferred into ClockErik Johnston2015-02-111-3/+2
| * | Time out HTTP federation requestsErik Johnston2015-02-101-2/+9
* | | Blunty replace json with simplejsonErik Johnston2015-02-111-1/+1
| |/ |/|
* | Return body of response in HttpResponseExceptionErik Johnston2015-02-061-1/+2
* | Apply sanity to the transport client interface. Convert 'make_join' and 'send...Erik Johnston2015-02-041-6/+36
* | Make post_json(...) actually send data.Erik Johnston2015-01-291-1/+1
* | Add post_json(...) method to federation clientErik Johnston2015-01-291-0/+37
* | Finish renaming "context" to "room_id" in federation codebaseMark Haines2015-01-161-1/+0
|/
* Update copyright noticesMark Haines2015-01-061-1/+1
* Include version in User-Agent and Server headersMark Haines2014-12-221-1/+3
* Limit the size of images that are thumbnailed serverside. Limit the size of f...Mark Haines2014-12-111-6/+19
* Merge branch 'develop' into media_repositoryMark Haines2014-12-101-9/+26
|\
| * turn back on per-request transaction retries, so that every time we try to hi...Matthew Hodgson2014-12-101-4/+3
| * Code style.Erik Johnston2014-12-101-8/+21
| * add errbacks to enqueue_pdu deferreds; change logging for failed federation s...Matthew Hodgson2014-12-101-2/+2
| * squidge to 79 columns as per pep8Matthew Hodgson2014-12-101-3/+4