summary refs log tree commit diff
path: root/synapse/federation/transport/client.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stop sending incorrect knock_state_events. (#16403)Patrick Cloke2023-10-061-1/+1
| | | | | | | | | Synapse was incorrectly implemented with a knock_state_events property on some APIs (instead of knock_room_state). This was correct in Synapse 1.70.0, but *both* fields were sent to also be compatible with Synapse versions expecting the wrong field. Enough time has passed that only the correct field needs to be included/handled.
* Don't reset retry timers on "valid" error codes (#16221)Erik Johnston2023-09-041-1/+3
|
* Send proper JSON POST data to /publicRooms (#16185)Patrick Cloke2023-08-251-10/+6
| | | | The include_all_networks was previously sent in the JSON body as string "true" and "false" instead of boolean true and false.
* Add requesting user id parameter to key claim methods in ↵Shay2023-05-241-3/+13
| | | | `TransportLayerClient` (#15663)
* Remove experimental configuration flags & unstable values for faster joins ↵Patrick Cloke2023-05-191-26/+3
| | | | | | | (#15625) Synapse will no longer send (or respond to) the unstable flags for faster joins. These were only available behind a configuration flag and handled in parallel with the stable flags.
* Factor out an `is_mine_server_name` method (#15542)Sean Quah2023-05-051-2/+2
| | | | | | | | | | | | Add an `is_mine_server_name` method, similar to `is_mine_id`. Ideally we would use this consistently, instead of sometimes comparing against `hs.hostname` and other times reaching into `hs.config.server.server_name`. Also fix a bug in the tests where `hs.hostname` would sometimes differ from `hs.config.server.server_name`. Signed-off-by: Sean Quah <seanq@matrix.org>
* Add support for claiming multiple OTKs at once. (#15468)Patrick Cloke2023-04-271-3/+46
| | | | | | | MSC3983 provides a way to request multiple OTKs at once from appservices, this extends this concept to the Client-Server API. Note that this will likely be spit out into a separate MSC, but is currently part of MSC3983.
* Finish type hints for federation client HTTP code. (#15465)Patrick Cloke2023-04-241-4/+13
|
* Add helper to parse an enum from query args & use it. (#14956)Patrick Cloke2023-02-011-4/+4
| | | | | | | | The `parse_enum` helper pulls an enum value from the query string (by delegating down to the parse_string helper with values generated from the enum). This is used to pull out "f" and "b" in most places and then we thread the resulting Direction enum throughout more code.
* Bump the client-side timeout for /state (#14912)David Robertson2023-01-251-0/+4
| | | | | | | | | | | * Bump the client-side timeout for /state to allow faster joins resyncs the chance to complete for large rooms. We have seen this fair poorly (~90s for Matrix HQ's /state) in testing, causing the resync to advance to another HS who hasn't seen our join yet. * Changelog * Milliseconds!!!!
* Add parameter to control whether we do a partial state join (#14843)Sean Quah2023-01-161-2/+5
| | | | | | | When the local homeserver is already joined to a room and wants to perform another remote join, we may find it useful to do a non-partial state join if we already have the full state for the room. Signed-off-by: Sean Quah <seanq@matrix.org>
* Also use stable name in SendJoinResponse struct (#14841)David Robertson2023-01-161-7/+9
| | | | | | | | | | | | | | | | | * Also use stable name in SendJoinResponse struct follow-up to #14832 * Changelog * Fix a rename I missed * Run black * Update synapse/federation/federation_client.py Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Use stable identifiers for faster joins (#14832)David Robertson2023-01-131-0/+18
| | | | | | | | | | | * Use new query param when requesting a partial join * Read new query param when serving partial join * Provide new field names when serving partial joins * Read new field names from partial join response * Changelog
* Move MSC3030 `/timestamp_to_event` endpoint to stable v1 location (#14471)Eric Eastwood2022-11-281-3/+2
| | | | | | | | Fix https://github.com/matrix-org/synapse/issues/14390 - Client API: `/_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>` -> `/_matrix/client/v1/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>` - Federation API: `/_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>` -> `/_matrix/federation/v1/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>` Complement test changes: https://github.com/matrix-org/complement/pull/559
* Remove redundant types from comments. (#14412)Patrick Cloke2022-11-161-6/+5
| | | | | | | Remove type hints from comments which have been added as Python type hints. This helps avoid drift between comments and reality, as well as removing redundant information. Also adds some missing type hints which were simple to fill in.
* Always close _all_ `ijson` coroutines, even if doing so raises Exceptions ↵David Robertson2022-10-061-4/+25
| | | | (#14065)
* Add type annotations to `trace` decorator. (#13328)Patrick Cloke2022-07-191-1/+1
| | | | Functions that are decorated with `trace` are now properly typed and the type hints for them are fixed.
* Remove federation client code for groups. (#12563)Patrick Cloke2022-05-271-483/+0
|
* Merge tag 'v1.60.0rc2' into developSean Quah2022-05-271-2/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.60.0rc2 (2022-05-27) ============================== This release of Synapse adds a unique index to the `state_group_edges` table, in order to prevent accidentally introducing duplicate information (for example, because a database backup was restored multiple times). If your Synapse database already has duplicate rows in this table, this could fail with an error and require manual remediation. Additionally, the signature of the `check_event_for_spam` module callback has changed. The previous signature has been deprecated and remains working for now. Module authors should update their modules to use the new signature where possible. See [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1600) for more details. Features -------- - Add an option allowing users to use their password to reauthenticate for privileged actions even though password login is disabled. ([\#12883](https://github.com/matrix-org/synapse/issues/12883)) Bugfixes -------- - Explicitly close `ijson` coroutines once we are done with them, instead of leaving the garbage collector to close them. ([\#12875](https://github.com/matrix-org/synapse/issues/12875)) Internal Changes ---------------- - Improve URL previews by not including the content of media tags in the generated description. ([\#12887](https://github.com/matrix-org/synapse/issues/12887))
| * Close `ijson` coroutines ourselves instead of letting the GC close them (#12875)Sean Quah2022-05-271-2/+7
| | | | | | | | | | | | | | Hopefully this means that exceptions raised due to truncated JSON get a sensible logging context and stack. Signed-off-by: Sean Quah <seanq@matrix.org>
* | Allow bigger responses to `/federation/v1/state` (#12877)Richard van der Hoff2022-05-251-7/+8
|/ | | | | | | | | | | * Refactor HTTP response size limits Rather than passing a separate `max_response_size` down the stack, make it an attribute of the `parser`. * Allow bigger responses on `federation/v1/state` `/state` can return huge responses, so we need to handle that.
* Remove unused `# type: ignore`s (#12531)David Robertson2022-04-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | Over time we've begun to use newer versions of mypy, typeshed, stub packages---and of course we've improved our own annotations. This makes some type ignore comments no longer necessary. I have removed them. There was one exception: a module that imports `select.epoll`. The ignore is redundant on Linux, but I've kept it ignored for those of us who work on the source tree using not-Linux. (#11771) I'm more interested in the config line which enforces this. I want unused ignores to be reported, because I think it's useful feedback when annotating to know when you've fixed a problem you had to previously ignore. * Installing extras before typechecking Lacking an easy way to install all extras generically, let's bite the bullet and make install the hand-maintained `all` extra before typechecking. Now that https://github.com/matrix-org/backend-meta/pull/6 is merged to the release/v1 branch.
* Remove the unstable event field for `/send_join` per MSC3083. (#12395)Patrick Cloke2022-04-121-10/+0
| | | | | | | This was missed when initially stabilising room version 8 and was left in as a compatibility shim. Most homeservers have upgraded to a version which expects the proper field name, and the failure mode is reasonable (a user on an older server may have to attempt joining the room twice with an obscure error message the first time).
* Unify HTTP query parameter type hints (#12415)David Robertson2022-04-081-2/+3
| | | | | | * Pull out query param types to `synapse.http.types` * Use QueryParams everywhere * Simplify `encode_query_args` * Add annotation which would have caught #12410
* Fix fetching public rooms over federation (#12410)Erik Johnston2022-04-071-1/+1
| | | Broke by #12364
* Fix a spec compliance issue where requests to the `/publicRooms` federation ↵reivilibre2022-04-051-2/+2
| | | | API would specify `limit` as a string. (#12364)
* Remove the unstable `/spaces` endpoint. (#12073)Patrick Cloke2022-02-281-33/+0
| | | | | | | | ...and various code supporting it. The /spaces endpoint was from an old version of MSC2946 and included both a Client-Server and Server-Server API. Note that the unstable /hierarchy endpoint (from the final version of MSC2946) is not yet removed.
* Implement account status endpoints (MSC3720) (#12001)Brendan Abolivier2022-02-221-1/+18
| | | | | See matrix-org/matrix-doc#3720 Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Faster joins: Support for calling `/federation/v1/state` (#12013)Richard van der Hoff2022-02-221-3/+67
| | | | This is an endpoint that we have server-side support for, but no client-side support. It's going to be useful for resyncing partial-stated rooms, so let's introduce it.
* Faster joins: parse msc3706 fields in send_join response (#12011)Richard van der Hoff2022-02-171-31/+87
| | | Part of my work on #11249: add code to handle the new fields added in MSC3706.
* Remove `log_function` and its uses (#11761)Richard van der Hoff2022-01-181-48/+0
| | | | | | | I've never found this terribly useful. I think it was added in the early days of Synapse, without much thought as to what would actually be useful to log, and has just been cargo-culted ever since. Rather, it tends to clutter up debug logs with useless information.
* Add most of the missing type hints to `synapse.federation`. (#11483)Patrick Cloke2021-12-021-7/+13
| | | This skips a few methods which are difficult to type.
* Add MSC3030 experimental client and federation API endpoints to get the ↵Eric Eastwood2021-12-021-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | closest event to a given timestamp (#9445) MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030 Client API endpoint. This will also go and fetch from the federation API endpoint if unable to find an event locally or we found an extremity with possibly a closer event we don't know about. ``` GET /_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction> { "event_id": ... "origin_server_ts": ... } ``` Federation API endpoint: ``` GET /_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction> { "event_id": ... "origin_server_ts": ... } ``` Co-authored-by: Erik Johnston <erik@matrix.org>
* Support the stable /hierarchy endpoint from MSC2946 (#11329)Patrick Cloke2021-11-291-4/+18
| | | | | | This also makes additional updates where the implementation had drifted from the approved MSC. Unstable endpoints will be removed at a later data.
* Return the stable `event` field from `/send_join` per MSC3083. (#11413)Patrick Cloke2021-11-291-1/+12
| | | | | This does not remove the unstable field and still parses both. Handling of the unstable field will need to be removed in the future.
* Add `use_float=true` to ijson calls in Synapse (#11217)Shay2021-11-011-0/+3
| | | | | | | | | | | | | * add use_float=true to ijson calls * lints * add changelog * Update changelog.d/11217.bugfix Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Annotate `log_function` decorator (#10943)reivilibre2021-10-271-4/+18
| | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* Support federation in the new spaces summary API (MSC2946). (#10569)Patrick Cloke2021-08-161-0/+22
|
* Convert Transaction and Edu object to attrs (#10542)Patrick Cloke2021-08-061-1/+1
| | | | | Instead of wrapping the JSON into an object, this creates concrete instances for Transaction and Edu. This allows for improved type hints and simplified code.
* Update the MSC3083 support to verify if joins are from an authorized server. ↵Patrick Cloke2021-07-261-1/+29
| | | | (#10254)
* Add type hints to synapse.federation.transport.client. (#10408)Patrick Cloke2021-07-261-201/+298
|
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-4/+4
|
* Remove the experimental flag for knocking and use stable prefixes / ↵Patrick Cloke2021-06-151-24/+3
| | | | | | | endpoints. (#10167) * Room version 7 for knocking. * Stable prefixes and endpoints (both client and federation) for knocking. * Removes the experimental configuration flag.
* Implement knock feature (#6739)Sorunome2021-06-091-3/+59
| | | | | | This PR aims to implement the knock feature as proposed in https://github.com/matrix-org/matrix-doc/pull/2403 Signed-off-by: Sorunome mail@sorunome.de Signed-off-by: Andrew Morgan andrewm@element.io
* Allow response of `/send_join` to be larger. (#10093)Erik Johnston2021-05-281-0/+7
| | | Fixes #10087.
* Use ijson to parse the response to `/send_join`, reducing memory usage. (#9958)Erik Johnston2021-05-201-4/+81
| | | Instead of parsing the full response to `/send_join` into Python objects (which can be huge for large rooms) and *then* parsing that into events, we instead use ijson to stream parse the response directly into `EventBase` objects.
* Support fetching the spaces summary via GET over federation. (#9947)Patrick Cloke2021-05-111-0/+1
| | | | | | | | | | | Per changes in MSC2946, the C-S and S-S APIs for spaces summary should use GET requests. Until this is stable, the POST endpoints still exist. This does not switch federation requests to use the GET version yet since it is newly added and already deployed servers might not support it. When switching to the stable endpoint we should switch to GET requests.
* 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>`
* Spaces summary: call out to other servers (#9653)Richard van der Hoff2021-03-241-1/+34
| | | | | When we hit an unknown room in the space tree, see if there are other servers that we might be able to poll to get the data. Fixes: #9447
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-56/+30
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-021-1/+1
| | | | | | | | | | | | Replaces the `federation_ip_range_blacklist` configuration setting with an `ip_range_blacklist` setting with wider scope. It now applies to: * Federation * Identity servers * Push notifications * Checking key validitity for third-party invite events The old `federation_ip_range_blacklist` setting is still honored if present, but with reduced scope (it only applies to federation and identity servers).
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-56/+40
|
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-1/+1
|
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-2/+1
|
* Further improvements to requesting the public rooms list on a homeserver ↵Andrew Morgan2020-05-011-14/+42
| | | | which has it set to private (#7368)
* Query missing cross-signing keys on local sig upload (#7289)Andrew Morgan2020-04-221-9/+40
|
* Revert "Query missing cross-signing keys on local sig upload"Richard van der Hoff2020-04-201-11/+3
| | | | | | This was incorrectly merged to the release branch before it was ready. This reverts commit 72fe2affb6ac86d433b80b6452da57052365aa26.
* Query missing cross-signing keys on local sig uploadAndrew Morgan2020-04-171-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add changelog Save retrieved keys to the db lint Fix and de-brittle remote result dict processing Use query_user_devices instead, assume only master, self_signing key types Make changelog more useful Remove very specific exception handling Wrap get_verify_key_from_cross_signing_key in a try/except Note that _get_e2e_cross_signing_verify_key can raise a SynapseError lint Add comment explaining why this is useful Only fetch master and self_signing key types Fix log statements, docstrings Remove extraneous items from remote query try/except lint Factor key retrieval out into a separate function Send device updates, modeled after SigningKeyEduUpdater._handle_signing_key_updates Update method docstring
* Fix sending server up commands from workers (#6811)Erik Johnston2020-01-301-1/+4
| | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Merge pull request #6349 from matrix-org/babolivier/msc1802Brendan Abolivier2019-12-111-2/+31
|\ | | | | Implement v2 APIs for send_join and send_leave
| * Merge branch 'develop' into babolivier/msc1802Brendan Abolivier2019-12-051-3/+3
| |\
| * | Implement v2 API for send_leaveBrendan Abolivier2019-11-111-1/+19
| | |
| * | Implement v2 API for send_joinBrendan Abolivier2019-11-111-1/+12
| | |
* | | Remove fallback for missing /federation/v1/state_ids API (#6488)Richard van der Hoff2019-12-091-24/+0
| |/ |/| | | | | This API was added way back in 0.17.0; the code here is annoying to maintain and entirely redundant.
* | Replace instance variations of homeserver with correct case/spacingAndrew Morgan2019-11-121-3/+3
|/
* use %r to __repr__ objectsMichael Kaye2019-10-241-2/+2
| | | | This avoids calculating __repr__ unless we are going to log.
* 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