Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reduce amount of state we pull out when attempting to send catchup PDUs. ↵ | Erik Johnston | 2022-06-07 | 1 | -11/+20 |
| | | | | | | | | | (#12963) * Don't pull out state for catchup * Newsfile * Merge newsfile | ||||
* | Additional constants for EDU types. (#12884) | Patrick Cloke | 2022-05-27 | 1 | -3/+4 |
| | | | Instead of hard-coding strings in many places. | ||||
* | Avoid attempting to delete push actions for remote users. (#12879) | Patrick Cloke | 2022-05-26 | 1 | -1/+1 |
| | | | | Remote users will never have push actions, so we can avoid a database round-trip/transaction completely. | ||||
* | Spread out sending device lists to remote hosts (#12132) | Erik Johnston | 2022-03-04 | 1 | -0/+10 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -4/+5 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Minor typing fixes (#12034) | Richard van der Hoff | 2022-02-21 | 1 | -9/+9 |
| | | | | | | These started failing in https://github.com/matrix-org/synapse/pull/12031... I'm a bit mystified by how they ever worked. | ||||
* | Use auto_attribs/native type hints for attrs classes. (#11692) | Patrick Cloke | 2022-01-13 | 1 | -6/+6 |
| | |||||
* | Add most of the missing type hints to `synapse.federation`. (#11483) | Patrick Cloke | 2021-12-02 | 1 | -3/+10 |
| | | | This skips a few methods which are difficult to type. | ||||
* | Remove unnecessary parentheses around tuples returned from methods (#10889) | Andrew Morgan | 2021-09-23 | 1 | -2/+2 |
| | |||||
* | Stagger send presence to remotes (#10398) | Erik Johnston | 2021-07-15 | 1 | -3/+13 |
| | | | | | | This is to help with performance, where trying to connect to thousands of hosts at once can consume a lot of CPU (due to TLS etc). Co-authored-by: Brendan Abolivier <babolivier@matrix.org> | ||||
* | Use inline type hints in various other places (in `synapse/`) (#10380) | Jonathan de Jong | 2021-07-15 | 1 | -9/+9 |
| | |||||
* | Add debug logging for issue #9533 (#9959) | Richard van der Hoff | 2021-05-11 | 1 | -0/+9 |
| | | | | | Hopefully this will help us track down where to-device messages are getting lost/delayed. | ||||
* | Revert "Experimental Federation Speedup (#9702)" | Andrew Morgan | 2021-04-28 | 1 | -9/+6 |
| | | | | This reverts commit 05e8c70c059f8ebb066e029bc3aa3e0cefef1019. | ||||
* | Experimental Federation Speedup (#9702) | Jonathan de Jong | 2021-04-14 | 1 | -6/+9 |
| | | | | | This basically speeds up federation by "squeezing" each individual dual database call (to destinations and destination_rooms), which previously happened per every event, into one call for an entire batch (100 max). Signed-off-by: Jonathan de Jong <jonathan@automatia.nl> | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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>` | ||||
* | Improve tracing for to device messages (#9686) | Erik Johnston | 2021-04-01 | 1 | -0/+8 |
| | |||||
* | Fixed undefined variable error in catchup (#9664) | Erik Johnston | 2021-03-24 | 1 | -0/+2 |
| | | | | | Broke in #9640 Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Make federation catchup send last event from any server. (#9640) | Erik Johnston | 2021-03-18 | 1 | -15/+89 |
| | | | | | | | | | | | | | | Currently federation catchup will send the last *local* event that we failed to send to the remote. This can cause issues for large rooms where lots of servers have sent events while the remote server was down, as when it comes back up again it'll be flooded with events from various points in the DAG. Instead, let's make it so that all the servers send the most recent events, even if its not theirs. The remote should deduplicate the events, so there shouldn't be much overhead in doing this. Alternatively, the servers could only send local events if they were also extremities and hope that the other server will send the event over, but that is a bit risky. | ||||
* | Don't go into federation catch up mode so easily (#9561) | Erik Johnston | 2021-03-15 | 1 | -119/+168 |
| | | | | | | | | | | Federation catch up mode is very inefficient if the number of events that the remote server has missed is small, since handling gaps can be very expensive, c.f. #9492. Instead of going into catch up mode whenever we see an error, we instead do so only if we've backed off from trying the remote for more than an hour (the assumption being that in such a case it is more than a transient failure). | ||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -4/+8 |
| | | | | | | | - 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 | ||||
* | Remove stream ordering from Metadata dict (#8452) | Richard van der Hoff | 2020-10-05 | 1 | -0/+2 |
| | | | | | | | | There's no need for it to be in the dict as well as the events table. Instead, we store it in a separate attribute in the EventInternalMetadata object, and populate that on load. This means that we can rely on it being correctly populated for any event which has been persited to the database. | ||||
* | Fix malformed log line in new federation "catch up" logic (#8442) | Richard van der Hoff | 2020-10-02 | 1 | -1/+1 |
| | |||||
* | Catch-up after Federation Outage (split, 4): catch-up loop (#8272) | reivilibre | 2020-09-15 | 1 | -4/+125 |
| | |||||
* | Catch up after Federation Outage (split, 2): Track last successful stream ↵ | reivilibre | 2020-09-04 | 1 | -0/+11 |
| | | | | | ordering after transmission (#8247) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Remove obsolete order field in `send_new_transaction` (#8245) | reivilibre | 2020-09-03 | 1 | -9/+8 |
| | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Convert stream database to async/await. (#8074) | Patrick Cloke | 2020-08-17 | 1 | -1/+1 |
| | |||||
* | Drop federation transmission queues during a significant remote outage. (#7864) | reivilibre | 2020-08-13 | 1 | -0/+22 |
| | | | | | | | | | | | | | * Empty federation transmission queues when we are backing off. Fixes #7828. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Address feedback Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Reword newsfile | ||||
* | Update worker docs with recent enhancements (#7969) | Erik Johnston | 2020-07-29 | 1 | -1/+1 |
| | |||||
* | Add ability to run multiple pusher instances (#7855) | Erik Johnston | 2020-07-16 | 1 | -1/+1 |
| | | | This reuses the same scheme as federation sender sharding | ||||
* | Add ability to shard the federation sender (#7798) | Erik Johnston | 2020-07-10 | 1 | -0/+22 |
| | |||||
* | Fix some spelling mistakes / typos. (#7811) | Patrick Cloke | 2020-07-09 | 1 | -2/+2 |
| | |||||
* | add a comment | Richard van der Hoff | 2020-05-21 | 1 | -0/+3 |
| | |||||
* | Fix catchup-on-reconnect for the Federation Stream (#7374) | Richard van der Hoff | 2020-05-05 | 1 | -2/+4 |
| | | | | looks like we managed to break this during the refactorathon. | ||||
* | Add typing to synapse.federation.sender (#6871) | Erik Johnston | 2020-02-07 | 1 | -43/+45 |
| | |||||
* | Add StateMap type alias (#6715) | Erik Johnston | 2020-01-16 | 1 | -1/+2 |
| | |||||
* | Merge branch 'develop' into cross-signing_federation | Hubert Chathi | 2019-10-31 | 1 | -5/+6 |
|\ | |||||
| * | Update black to 19.10b0 (#6304) | Amber Brown | 2019-11-01 | 1 | -5/+6 |
| | | | | | | * update version of black and also fix the mypy config being overridden | ||||
* | | rename get_devices_by_remote to get_device_updates_by_remote | Hubert Chathi | 2019-10-30 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'develop' into cross-signing_federation | Hubert Chathi | 2019-10-24 | 1 | -1/+1 |
|\| | |||||
| * | Move storage classes into a main "data store". | Erik Johnston | 2019-10-21 | 1 | -1/+1 |
| | | | | | | | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage. | ||||
* | | implement federation parts of cross-signing | Hubert Chathi | 2019-10-22 | 1 | -2/+2 |
|/ | |||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -2/+2 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -5/+2 |
| | |||||
* | Clean up code for sending federation EDUs. (#5381) | Richard van der Hoff | 2019-06-13 | 1 | -14/+26 |
| | | | | This code confused the hell out of me today. Split _get_new_device_messages into its two (unrelated) parts. | ||||
* | Prevent multiple device list updates from breaking a batch send (#5156) | Andrew Morgan | 2019-06-06 | 1 | -2/+3 |
| | | | fixes #5153 | ||||
* | Run `black` on per_destination_queue | Richard van der Hoff | 2019-05-09 | 1 | -35/+39 |
| | | | | ... mostly to fix pep8 fails | ||||
* | Limit the number of EDUs in transactions to 100 as expected by receiver (#5138) | Quentin Dufour | 2019-05-09 | 1 | -26/+30 |
| | | | Fixes #3951. | ||||
* | Batch up outgoing read-receipts to reduce federation traffic. (#4890) | Richard van der Hoff | 2019-03-20 | 1 | -2/+62 |
| | | | | Rate-limit outgoing read-receipts as per #4730. | ||||
* | Rename and move the classes | Richard van der Hoff | 2019-03-13 | 1 | -0/+318 |