summary refs log tree commit diff
path: root/synapse/federation/transport/client.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rip out some unreachable codeRichard van der Hoff2019-10-171-11/+0
| | | | The only possible rejection reason is AUTH_ERROR, so all of this is unreachable.
* Use MSC2197 on stable prefix as it has almost finished FCPOlivier Wilkinson (reivilibre)2019-08-201-2/+2
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Support MSC2197 outbound with unstable prefixOlivier Wilkinson (reivilibre)2019-08-151-15/+31
| | | | Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-7/+24
|
* Replace returnValue with return (#5736)Amber Brown2019-07-231-15/+15
|
* 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-160/+134
|
* Make federation endpoints more tolerant of trailing slashes v2 (#4935)Andrew Morgan2019-03-261-1/+1
| | | Redo of https://github.com/matrix-org/synapse/pull/4840
* Remove trailing slashes from outbound federation requests and retry on 400 ↵Andrew Morgan2019-03-211-7/+14
|\ | | | | | | | | (#4840) As per #3622, we remove trailing slashes from outbound federation requests. However, to ensure that we remain backwards compatible with previous versions of Synapse, if we receive a HTTP 400 with `M_UNRECOGNIZED`, then we are likely talking to an older version of Synapse in which case we retry with a trailing slash appended to the request path.
| * Switch to wrapper function around _send_requestAndrew Morgan2019-03-131-5/+5
| |
| * Cleaner way of implementing trailing slashesAndrew Morgan2019-03-121-5/+10
| |
| * lintAndrew Morgan2019-03-081-1/+3
| |
| * Retry certain federation requests on 404Andrew Morgan2019-03-081-5/+5
| |
| * Remove trailing slashes from outbound federation requestsAndrew Morgan2019-03-081-7/+7
| |
* | Revert "Make federation endpoints more tolerant of trailing slashes for some ↵Erik Johnston2019-03-141-1/+1
| | | | | | | | | | | | endpoints (#4793)" This reverts commit 290552fd836f4ae2dc1d893a7f72f7fff85365d3.
* | Make federation endpoints more tolerant of trailing slashes for some ↵Andrew Morgan2019-03-111-1/+1
|/ | | | | endpoints (#4793) Server side of a solution towards #3622.
* Implement fallback for V2 invite APIErik Johnston2019-01-281-2/+37
| | | | | If the room version is either 1 or 2 then a server should retry failed `/v2/invite` requests with the v1 API
* Add groundwork for new versions of federation APIsErik Johnston2019-01-151-65/+67
|
* Various cleanups in the federation client code (#4031)Richard van der Hoff2018-10-161-8/+11
| | | | | | | | | | | | | | - Improve logging: log things in the right order, include destination and txids in all log lines, don't log successful responses twice - Fix the docstring on TransportLayerClient.send_transaction - Don't use treq.request, which is overcomplicated for our purposes: just use a twisted.web.client.Agent. - simplify the logic for setting up the bodyProducer - fix bytes/str confusions
* Port federation/ to py3 (#3847)Amber Brown2018-09-121-2/+3
|
* Merge pull request #3735 from matrix-org/travis/federation-spellingRichard van der Hoff2018-08-221-1/+1
|\ | | | | limt -> limit
| * limt -> limitTravis Ralston2018-07-311-1/+1
| |
* | include known room versions in outgoing make_joinsRichard van der Hoff2018-08-061-1/+4
|/
* run isortAmber Brown2018-07-091-5/+4
|
* Ensure slashes are escapedErik Johnston2018-04-101-1/+1
|
* URL quote path segments over federationErik Johnston2018-04-101-48/+80
|
* pep8Luke Barnard2018-04-061-1/+1
|
* Fix federation client `set_group_joinable` typoLuke Barnard2018-04-061-1/+1
|
* Implement group join APIDavid Baker2018-04-061-0/+13
|
* use PUT instead of POST for federating groups/m.join_policyKrombel2018-04-061-1/+1
|
* Use "/settings/" (plural)Luke Barnard2018-04-051-1/+1
|
* Use join_policy API instead of joinableLuke Barnard2018-04-031-2/+2
| | | | | | | | | | | | | | | | | The API is now under /groups/$group_id/setting/m.join_policy and expects a JSON blob of the shape ```json { "m.join_policy": { "type": "invite" } } ``` where "invite" could alternatively be "open".
* pep8David Baker2018-03-281-2/+1
|
* Add joinability for groupsDavid Baker2018-03-281-0/+17
| | | | | Adds API to set the 'joinable' flag, and corresponding flag in the table.
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-0/+3
| | | | | | Add federation_domain_whitelist gives a way to restrict which domains your HS is allowed to federate with. useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network
* Have an explicit API to update room configErik Johnston2017-11-081-0/+14
|
* Revert "Modify group room association API to allow modification of is_public"Erik Johnston2017-11-081-5/+4
|
* Update docs for updating room group associationLuke Barnard2017-11-011-1/+1
|
* Flake8Luke Barnard2017-10-311-3/+4
|
* Modify group room association API to allow modification of is_publicLuke Barnard2017-10-311-2/+2
| | | | also includes renamings to make things more consistent.
* Correctly wire in update group profile over federationErik Johnston2017-10-231-0/+20
|
* Implement GET /groups/$groupId/invited_usersLuke Barnard2017-10-161-0/+13
|
* Fix typo in invite to groupErik Johnston2017-10-111-1/+1
|
* Add remove room APIErik Johnston2017-09-261-0/+12
|
* Add bulk group publicised lookup APIErik Johnston2017-08-091-0/+15
|
* CommentsErik Johnston2017-07-181-0/+40
|
* Fix typosErik Johnston2017-07-181-2/+2
|
* Add client apisErik Johnston2017-07-181-9/+187
|
* Add local group server supportErik Johnston2017-07-171-0/+77
|
* CommentErik Johnston2017-07-111-0/+12
|
* Initial group server implementationErik Johnston2017-07-101-0/+34
|
* Try harder when sending leave eventsRichard van der Hoff2017-04-211-1/+19
| | | | | When we're rejecting invites, ignore the backoff data, so that we have a better chance of not getting the room out of sync.
* Fix some lies, and other clarifications, in docstringsRichard van der Hoff2017-04-211-0/+20
| | | | | The documentation on get_json has been wrong ever since the very first commit to synapse...
* Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-1/+5
| | | | | Add a param to the federation client which lets us ignore historical backoff data for federation queries, and set it for a handful of operations.
* push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-0/+1
| | | | | rather than having to instrument everywhere we make a federation call, make the MatrixFederationHttpClient manage the retry limiter.
* Implement device key caching over federationErik Johnston2017-01-261-0/+26
|
* limit total timeout for get_missing_events to 10sMatthew Hodgson2016-12-311-2/+3
|
* Add new API appservice specific public room listErik Johnston2016-12-061-2/+7
|
* Support filtering remote room listsErik Johnston2016-09-161-1/+4
|
* Pass since/from parameters over federationErik Johnston2016-09-151-1/+8
|
* Add a timeout parameter for end2end key queries.Mark Haines2016-09-121-2/+4
| | | | | | | | | | Add a timeout parameter for controlling how long synapse will wait for responses from remote servers. For servers that fail include how they failed to make it easier to debug. Fetch keys from different servers in parallel rather than in series. Set the default timeout to 10s.
* Add /state_ids federation APIErik Johnston2016-08-031-0/+22
| | | | | The new API only returns the event_ids for the state, as most requesters will already have the vast majority of the events already.
* Basic, un-cached support for secondary_directory_serversDavid Baker2016-05-311-0/+12
|
* Lower timeout for make_membership_eventErik Johnston2016-04-151-1/+2
| | | | | Calls to make_membership_event are done in response to client requests, and so should not be retried over long timeframes.
* Add profile information to invitesErik Johnston2016-03-041-0/+1
|
* Remove redundated BaseHomeServerErik Johnston2016-01-261-0/+4
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Only retry federation requests for a long time for background requestsErik Johnston2015-11-171-0/+1
|
* Exchange 3pid invites for m.room.member invitesDaniel Wagner-Hall2015-11-051-2/+14
|
* Allow rejecting invitesDaniel Wagner-Hall2015-10-201-2/+22
| | | | | This is done by using the same /leave flow as you would use if you had already accepted the invite and wanted to leave.
* Implement third party identifier invitesDaniel Wagner-Hall2015-10-011-2/+3
|
* Get the end-to-end key federation workingMark Haines2015-07-241-2/+2
|
* Add federation support for end-to-end key requestsMark Haines2015-07-231-0/+70
|
* Add doc stringsErik Johnston2015-05-221-0/+2
|
* Add a timeout param to get_eventErik Johnston2015-05-191-2/+2
|
* Implement and use new batched get missing pduErik Johnston2015-02-231-0/+19
|
* Apply sanity to the transport client interface. Convert 'make_join' and ↵Erik Johnston2015-02-041-26/+16
| | | | 'send_join' to accept iterables of destinations
* Initial implementation of auth conflict resolutionErik Johnston2015-01-291-0/+16
|
* Finish renaming "context" to "room_id" in federation codebaseMark Haines2015-01-161-28/+19
|
* Fold _do_request_for_transaction into the methods that called it since it ↵Mark Haines2015-01-161-44/+11
| | | | was a trivial wrapper around client.get_json
* Split transport layer into client and server partsMark Haines2015-01-161-0/+257