summary refs log tree commit diff
path: root/synapse/federation/federation_client.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Bump ruff from 0.0.277 to 0.0.286 (#16198)dependabot[bot]2023-08-291-1/+1
* Support room version 11 (#15912)Patrick Cloke2023-07-181-3/+3
* Fix MSC3983 support: Use the unstable /keys/claim federation endpoint if mult...Patrick Cloke2023-06-131-1/+4
* Add requesting user id parameter to key claim methods in `TransportLayerClien...Shay2023-05-241-2/+4
* Factor out an `is_mine_server_name` method (#15542)Sean Quah2023-05-051-2/+2
* Add support for claiming multiple OTKs at once. (#15468)Patrick Cloke2023-04-271-1/+48
* Finish type hints for federation client HTTP code. (#15465)Patrick Cloke2023-04-241-6/+2
* Implement MSC3984 to proxy /keys/query requests to appservices. (#15321)Patrick Cloke2023-03-301-42/+6
* Fix federated joins when the first server in the list is not in the room (#15...Sean Quah2023-02-151-6/+5
* Faster joins: Refactor handling of servers in room (#14954)Sean Quah2023-02-031-11/+22
* Add helper to parse an enum from query args & use it. (#14956)Patrick Cloke2023-02-011-5/+10
* Prefer `type(x) is int` to `isinstance(x, int)` (#14945)David Robertson2023-01-311-1/+1
* Faster joins: Fix incompatibility with restricted joins (#14882)Sean Quah2023-01-221-0/+5
* Add parameter to control whether we do a partial state join (#14843)Sean Quah2023-01-161-3/+18
* Also use stable name in SendJoinResponse struct (#14841)David Robertson2023-01-161-3/+3
* Failover on proper error responses. (#14620)Patrick Cloke2022-12-061-9/+20
* Move MSC3030 `/timestamp_to_event` endpoint to stable v1 location (#14471)Eric Eastwood2022-11-281-1/+11
* Fix typo in #13320 which could cause log spam (#14347)David Robertson2022-11-011-1/+1
* Refactor MSC3030 `/timestamp_to_event` to move away from our snowflake pull f...Eric Eastwood2022-10-261-21/+109
* Correct field name for stripped state events when knocking. `knock_state_even...Andrew Morgan2022-10-121-1/+1
* Track when the pulled event signature fails (#13815)Eric Eastwood2022-10-031-10/+40
* Don't include redundant prev_state in new events (#13791)Denis2022-09-201-3/+0
* Rename the `EventFormatVersions` enum values so that they line up with room v...reivilibre2022-09-071-1/+1
* Instrument `_check_sigs_and_hash_and_fetch` to trace time spent in child conc...Eric Eastwood2022-08-231-3/+20
* Instrument the federation/backfill part of `/messages` (#13489)Eric Eastwood2022-08-161-1/+26
* Instrument `/messages` for understandable traces in Jaeger (#13368)Eric Eastwood2022-08-031-0/+2
* Make minor clarifications to the error messages given when we fail to join a ...reivilibre2022-07-271-1/+7
* Fix `get_pdu` asking every remote destination even after it finds an event (#...Eric Eastwood2022-07-271-3/+3
* Update `get_pdu` to return the original, pristine `EventBase` (#13320)Eric Eastwood2022-07-201-42/+81
* Add type annotations to `trace` decorator. (#13328)Patrick Cloke2022-07-191-1/+1
* Stop depending on `room_id` to be returned for children state in the hierarch...Patrick Cloke2022-06-101-4/+0
* Improve logging when signature checks fail (#12925)Richard van der Hoff2022-05-311-13/+32
* Faster room joins: Try other destinations when resyncing the state of a parti...Sean Quah2022-05-311-1/+4
* Fix inconsistent spelling of 'M_UNRECOGNIZED'. (#12665)Val Lorentz2022-05-091-1/+1
* Support MSC3266 room summaries over federation (#11507)DeepBlueV7.X2022-05-051-0/+2
* Unify HTTP query parameter type hints (#12415)David Robertson2022-04-081-1/+2
* Check if instances are lists, not sequences. (#12128)Patrick Cloke2022-03-021-4/+4
* Remove the unstable `/spaces` endpoint. (#12073)Patrick Cloke2022-02-281-194/+32
* Properly failover for unknown endpoints from Conduit/Dendrite. (#12077)Patrick Cloke2022-02-281-9/+13
* Implement account status endpoints (MSC3720) (#12001)Brendan Abolivier2022-02-221-1/+59
* Faster joins: Support for calling `/federation/v1/state` (#12013)Richard van der Hoff2022-02-221-12/+81
* remote join processing: get create event from state, not auth_chain (#12039)Richard van der Hoff2022-02-211-2/+4
* Faster joins: parse msc3706 fields in send_join response (#12011)Richard van der Hoff2022-02-171-1/+14
* Fix a bug that corrupted the cache of federated space hierarchies (#11775)Sean Quah2022-01-201-9/+9
* Remove `log_function` and its uses (#11761)Richard van der Hoff2022-01-181-5/+0
* Refactor the way we set `outlier` (#11634)Richard van der Hoff2022-01-051-31/+5
* `FederationClient.backfill`: stop flagging events as outliers (#11632)Richard van der Hoff2022-01-041-1/+1
* Add most of the missing type hints to `synapse.federation`. (#11483)Patrick Cloke2021-12-021-2/+2
* Add MSC3030 experimental client and federation API endpoints to get the close...Eric Eastwood2021-12-021-0/+77
* Support the stable /hierarchy endpoint from MSC2946 (#11329)Patrick Cloke2021-11-291-5/+26
* Split out federated PDU retrieval into a non-cached version (#11242)Eric Eastwood2021-11-091-22/+58
* Annotate `log_function` decorator (#10943)reivilibre2021-10-271-2/+15
* Strip "join_authorised_via_users_server" from join events which do not need i...Patrick Cloke2021-09-301-3/+3
* Factor out common code for persisting fetched auth events (#10896)Richard van der Hoff2021-09-241-2/+0
* Cache the result of fetching the room hierarchy over federation. (#10647)Patrick Cloke2021-08-261-40/+66
* Do not include stack traces for known exceptions when trying multiple federat...Patrick Cloke2021-08-231-1/+6
* Attempt to pull from the legacy spaces summary API over federation. (#10583)Patrick Cloke2021-08-171-9/+55
* Support federation in the new spaces summary API (MSC2946). (#10569)Patrick Cloke2021-08-161-0/+82
* Fix exceptions in logs when failing to get remote room list (#10541)Erik Johnston2021-08-061-1/+2
* Refactoring before implementing the updated spaces summary. (#10527)Patrick Cloke2021-08-051-9/+14
* Improve failover logic for MSC3083 restricted rooms. (#10447)Patrick Cloke2021-07-291-4/+39
* Update the MSC3083 support to verify if joins are from an authorized server. ...Patrick Cloke2021-07-261-12/+49
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-5/+5
* Remove the experimental flag for knocking and use stable prefixes / endpoints...Patrick Cloke2021-06-151-7/+2
* Implement knock feature (#6739)Sorunome2021-06-091-1/+71
* When joining a remote room limit the number of events we concurrently check s...Erik Johnston2021-06-081-54/+93
* Use ijson to parse the response to `/send_join`, reducing memory usage. (#9958)Erik Johnston2021-05-201-18/+10
* Pass errors back to the client when trying multiple federation destinations. ...Patrick Cloke2021-04-271-58/+60
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Add type hints to expiring cache. (#9730)Patrick Cloke2021-04-061-1/+1
* Spaces summary: call out to other servers (#9653)Richard van der Hoff2021-03-241-10/+170
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-1/+5
* Ratelimit invites by room and target user (#9258)Erik Johnston2021-01-291-1/+1
* Various improvements to the federation client. (#9129)Patrick Cloke2021-01-201-58/+67
* Mypy fixes for `synapse.handlers.federation` (#8422)Richard van der Hoff2020-09-291-1/+3
* Merge tag 'v1.20.0rc5' into developPatrick Cloke2020-09-181-5/+3
|\
| * Use _check_sigs_and_hash_and_fetch to validate backfill requests (#8350)Andrew Morgan2020-09-181-5/+3
* | Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
|/
* Don't assume that an event has an origin fieldErik Johnston2020-09-161-3/+4
* Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-4/+4
* Convert synapse.app to async/await. (#7868)Patrick Cloke2020-07-171-21/+19
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-2/+2
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-1/+1
* async/await is_server_admin (#7363)Andrew Morgan2020-05-011-3/+2
* Further improvements to requesting the public rooms list on a homeserver whic...Andrew Morgan2020-05-011-9/+28
* Fix a bug in the federation API which could cause occasional "Failed to get P...Patrick Cloke2020-03-191-11/+8
* Remove unused federation endpoint (`query_auth`) (#7026)Patrick Cloke2020-03-171-1/+79
* Add some type annotations to the federation base & client classes (#6995)Patrick Cloke2020-02-281-5/+5
* Pass room_version into `event_from_pdu_json`Richard van der Hoff2020-02-061-19/+16
* pass room version into FederationClient.send_join (#6854)Richard van der Hoff2020-02-061-28/+32
* Simplify `room_version` handling in `FederationClient.send_invite`Richard van der Hoff2020-02-051-10/+6
* Pass room version object into `FederationClient.get_pdu`Richard van der Hoff2020-02-051-3/+5
* make FederationClient._do_send_invite asyncRichard van der Hoff2020-02-051-10/+7
* Apply suggestions from code reviewRichard van der Hoff2020-02-051-2/+4
* make FederationClient.send_invite asyncRichard van der Hoff2020-02-031-6/+5
* make FederationClient.get_missing_events asyncRichard van der Hoff2020-02-031-20/+20
* make FederationClient._do_send_leave asyncRichard van der Hoff2020-02-031-4/+3
* make FederationClient.send_leave.send_request asyncRichard van der Hoff2020-02-031-5/+2
* make FederationClient._do_send_join asyncRichard van der Hoff2020-02-031-4/+3
* make FederationClient.send_join.send_request asyncRichard van der Hoff2020-02-031-4/+3
* make FederationClient.make_membership_event.send_request asyncRichard van der Hoff2020-02-031-4/+3
* make FederationClient._try_destination_list asyncRichard van der Hoff2020-02-031-10/+26
* make FederationClient.send_leave asyncRichard van der Hoff2020-02-031-10/+9
* make FederationClient.send_join asyncRichard van der Hoff2020-02-031-11/+13
* make FederationClient.make_membership_event asyncRichard van der Hoff2020-02-031-10/+11
* make FederationClient.get_event_auth asyncRichard van der Hoff2020-02-031-6/+4
* make FederationClient.get_room_state_ids asyncRichard van der Hoff2020-02-031-4/+5
* make FederationClient.get_pdu asyncRichard van der Hoff2020-02-031-15/+17
* make FederationClient.backfill asyncRichard van der Hoff2020-02-031-15/+11
* Merge pull request #6806 from matrix-org/rav/redact_changes/3Richard van der Hoff2020-01-311-3/+1
|\
| * Pass room_version into create_local_event_from_event_dictRichard van der Hoff2020-01-301-3/+1
* | s/get_room_version/get_room_version_id/Richard van der Hoff2020-01-311-5/+5
|/
* Add `rooms.room_version` column (#6729)Erik Johnston2020-01-271-17/+33
* Merge pull request #6349 from matrix-org/babolivier/msc1802Brendan Abolivier2019-12-111-12/+76
|\
| * Merge branch 'develop' into babolivier/msc1802Brendan Abolivier2019-12-051-3/+3
| |\
| * | LintBrendan Abolivier2019-11-111-3/+2
| * | Implement v2 API for send_leaveBrendan Abolivier2019-11-111-4/+37
| * | Add missing yieldBrendan Abolivier2019-11-111-1/+1
| * | Implement v2 API for send_joinBrendan Abolivier2019-11-111-7/+39
* | | Move get_state methods into FederationHandler (#6503)Richard van der Hoff2019-12-101-80/+11
* | | Refactor get_events_from_store_or_dest to return a dict (#6501)Richard van der Hoff2019-12-101-29/+15
* | | Remove fallback for missing /federation/v1/state_ids API (#6488)Richard van der Hoff2019-12-091-72/+17
| |/ |/|
* | Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-121-3/+3
|/
* Depublish a room from the public rooms list when it is upgraded (#6232)Andrew Morgan2019-11-011-1/+1
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-3/+5
* use %r to __repr__ objectsMichael Kaye2019-10-241-1/+1
* rip out some unreachable codeRichard van der Hoff2019-10-171-38/+0
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-4/+4
* Return 502 not 500 when failing to reach any remote server.Erik Johnston2019-08-011-4/+3
* Room Complexity Client Implementation (#5783)Amber Brown2019-07-301-0/+36
* Replace returnValue with return (#5736)Amber Brown2019-07-231-24/+22
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-4/+4
* Run Black. (#5482)Amber Brown2019-06-201-109/+108
* Clean up debug logging (#5347)Richard van der Hoff2019-06-051-3/+13
* Fix failure to fetch batches of PDUs (#5342)Richard van der Hoff2019-06-041-0/+1
* Rename get_events->get_events_from_store_or_dest (#5344)Richard van der Hoff2019-06-041-20/+13
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-14/+15
* MSC 1866 - Use M_UNSUPPORTED_ROOM_VERSION for invite APIErik Johnston2019-02-231-1/+17
* Only check event ID domain for signatures for V1 eventsErik Johnston2019-01-291-3/+3
* Merge pull request #4481 from matrix-org/erikj/event_builderErik Johnston2019-01-291-14/+6
|\
| * Refactor event building into EventBuilderErik Johnston2019-01-291-14/+6
* | Implement fallback for V2 invite APIErik Johnston2019-01-281-12/+52
|/
* Require event format version to parse or create eventsErik Johnston2019-01-251-23/+37
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/msc_1813Erik Johnston2019-01-251-9/+53
|\
| * Merge pull request #4448 from matrix-org/erikj/get_pdu_versionsErik Johnston2019-01-241-7/+40
| |\
| | * Review commentsErik Johnston2019-01-241-1/+2
| | * Add room_version param to get_pduErik Johnston2019-01-231-7/+39
| * | Update make_membership_event docsErik Johnston2019-01-241-2/+5
| * | Remove unnecessary '_sign_event'Erik Johnston2019-01-231-1/+8
| * | Store rejected remote invite events as outliersErik Johnston2019-01-231-2/+8
| |/
* | Review commentsErik Johnston2019-01-241-1/+2
* | Implement MSC 1813 - Add room version to make APIsErik Johnston2019-01-231-5/+16
|/
* more commentsRichard van der Hoff2018-09-271-2/+0
* fix docstring for FederationClient.get_state_for_roomRichard van der Hoff2018-09-261-4/+4
* Fix some instances of ExpiringCache not expiring cache itemsErik Johnston2018-09-211-16/+12
* Port federation/ to py3 (#3847)Amber Brown2018-09-121-4/+4
* Check m.room.create for sane room_versionsRichard van der Hoff2018-08-061-3/+23
* include known room versions in outgoing make_joinsRichard van der Hoff2018-08-061-3/+5
* sanity check response from make_joinRichard van der Hoff2018-08-031-1/+3
* Refactor code for turning HttpResponseException into SynapseErrorRichard van der Hoff2018-08-011-2/+2
* Be more careful which errors we send back over the C-S APIRichard van der Hoff2018-08-011-12/+17
* Factor out exception handling in federation_clientRichard van der Hoff2018-08-011-129/+148
* run isortAmber Brown2018-07-091-7/+7
* Consistently use six's iteritems and wrap lazy keys/values in list() if they'...Amber Brown2018-05-311-2/+2
* replacing portionsAmber Brown2018-05-211-10/+7
* Merge branch 'develop' into py3-xrange-1Richard van der Hoff2018-04-301-2/+3
|\
| * Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-271-2/+3
* | Move more xrange to sixAdrian Tschira2018-04-281-1/+3
|/
* Refactor store.have_eventsRichard van der Hoff2018-04-201-1/+1
* Move property setting from ReplicationLayer to FederationBaseErik Johnston2018-03-131-0/+1
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-1/+4
* Factor out `event_from_pdu_json`Richard van der Hoff2017-12-301-21/+15
* federation_client: clean up importsRichard van der Hoff2017-12-301-13/+10
* Remove preserve_context_over_{fn, deferred}Richard van der Hoff2017-11-141-2/+2
* Fix logcontexts in _check_sigs_and_hashesRichard van der Hoff2017-09-201-4/+4
* Fix some lies, and other clarifications, in docstringsRichard van der Hoff2017-04-211-2/+48
* Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-2/+5
* push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-20/+13
* Fix docstringRichard van der Hoff2017-03-091-2/+1
* Implement device key caching over federationErik Johnston2017-01-261-0/+10
* Fix couple of federation state bugsErik Johnston2017-01-171-2/+4
* limit total timeout for get_missing_events to 10sMatthew Hodgson2016-12-311-1/+3
* Remove fallback from get_missing_events.Mark Haines2016-12-301-69/+0
* Add new API appservice specific public room listErik Johnston2016-12-061-2/+5
* Use new federation_sender DIErik Johnston2016-11-161-49/+0
* Add transaction queue and transport layer to DIErik Johnston2016-11-161-1/+0
* Move logic into transaction_queueErik Johnston2016-11-161-14/+2
* Rename transaction queue functions to send_*Erik Johnston2016-11-161-7/+7
* Time out typing over federationErik Johnston2016-09-231-2/+0
* Support filtering remote room listsErik Johnston2016-09-161-2/+5
* Pass since/from parameters over federationErik Johnston2016-09-151-18/+4
* Merge pull request #1110 from matrix-org/markjh/e2e_timeoutMark Haines2016-09-131-4/+8
|\
| * Add a timeout parameter for end2end key queries.Mark Haines2016-09-121-4/+8
* | Fix backfill when cannot find an event.Erik Johnston2016-09-121-1/+1
|/
* Clobber EDUs in send queueErik Johnston2016-09-091-2/+6
* Add a new method to enqueue the device messages rather than sending a dummy EDUMark Haines2016-09-071-0/+6
* Merge branch 'erikj/pdu_check' of github.com:matrix-org/synapse into developErik Johnston2016-09-011-5/+5
|\
| * Ensure we only return a validated pdu in get_pduErik Johnston2016-09-011-5/+5
* | Use state handler instead of get_users_in_room/get_joined_hostsErik Johnston2016-08-261-1/+4
|/
* Preserve some logcontextsErik Johnston2016-08-241-6/+11
* Don't stop on 4xx series errorsErik Johnston2016-08-101-11/+1
* Also pull out rejected eventsErik Johnston2016-08-101-1/+1
* Store if we fail to fetch an event from a destinationErik Johnston2016-08-101-1/+36
* Fix a couple of python bugsErik Johnston2016-08-051-6/+8
* Retry joining via other servers if first one failedErik Johnston2016-08-051-5/+16
* Fix typoErik Johnston2016-08-051-1/+1
* Check if we already have the events returned by /state/Erik Johnston2016-08-051-2/+16
* Fallback to /state/ on both 400 and 404Erik Johnston2016-08-051-1/+1
* Tweak integrity error recovery to work as intendedBenjamin Saunders2016-08-041-1/+1
* Fix typos.Erik Johnston2016-08-041-3/+3
* Tidy up get_eventsErik Johnston2016-08-041-12/+10
* Rename fields to _idsErik Johnston2016-08-031-2/+2
* Fix copy + paste failsErik Johnston2016-08-031-5/+10
* Actually call get_room_stateErik Johnston2016-08-031-0/+4
* Fix syntax errorErik Johnston2016-08-031-1/+8
* CommentErik Johnston2016-08-031-0/+14
* Add /state_ids federation APIErik Johnston2016-08-031-3/+70
* Linearize fetching of gaps on incoming eventsErik Johnston2016-06-151-0/+2
* Apparently I am not permitted to have two blank lines hereDavid Baker2016-05-311-1/+0
* Basic, un-cached support for secondary_directory_serversDavid Baker2016-05-311-0/+21
* Intern all the thingsErik Johnston2016-03-231-0/+1
* Add profile information to invitesErik Johnston2016-03-041-1/+1
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
* copyrightsMatthew Hodgson2016-01-071-1/+1
* Don't complain if /make_join response lacks 'prev_state' list (SYN-517)Paul "LeoNerd" Evans2015-11-131-0/+6
* Fix missing profile data in federation joinsErik Johnston2015-11-121-1/+4
* Exchange 3pid invites for m.room.member invitesDaniel Wagner-Hall2015-11-051-8/+25
* Allow rejecting invitesDaniel Wagner-Hall2015-10-201-6/+61
* Look for keys on the right objectsDaniel Wagner-Hall2015-10-151-1/+3
* Remove unnecessary class-wrappingDaniel Wagner-Hall2015-10-131-3/+3
* Move event contents into third_party_layout fieldDaniel Wagner-Hall2015-10-131-2/+2
* Fix lint errorsDaniel Wagner-Hall2015-10-061-1/+0
* Implement third party identifier invitesDaniel Wagner-Hall2015-10-011-2/+7
* Merge pull request #208 from matrix-org/markjh/end-to-end-key-federationMark Haines2015-08-181-0/+30
|\
| * Get the end-to-end key federation workingMark Haines2015-07-241-8/+4
| * Add federation support for end-to-end key requestsMark Haines2015-07-231-0/+34
* | Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+1
|/
* Implement bulk verify_signed_json APIErik Johnston2015-06-261-14/+43
* Remove redundant for loopErik Johnston2015-05-221-3/+0
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/backfill_f...Erik Johnston2015-05-221-0/+2
|\
| * Add doc stringsErik Johnston2015-05-221-0/+2
* | Merge branch 'erikj/join_perf' of github.com:matrix-org/synapse into erikj/ba...Erik Johnston2015-05-211-3/+3
|\|
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/join_perfErik Johnston2015-05-211-3/+3
| |\
| | * Remove pointless newlineErik Johnston2015-05-181-1/+0
| | * Remove debug loggingErik Johnston2015-05-181-8/+0
| | * Fix daedlockErik Johnston2015-05-151-3/+12
* | | Actually fetch state for new backwards extremeties when backfilling.Erik Johnston2015-05-201-1/+5
|/ /
* | Add None checkErik Johnston2015-05-191-1/+1
* | Add a timeout param to get_eventErik Johnston2015-05-191-9/+14
|/