| Commit message (Expand) | Author | Age | Files | Lines |
* | Add type hints to test_descriptors. (#15659) | Patrick Cloke | 2023-05-24 | 1 | -93/+104 |
* | Add final type hint to tests.unittest. (#15072) | Patrick Cloke | 2023-02-14 | 1 | -0/+2 |
* | Remove unnecessary reactor reference from `_PerHostRatelimiter` (#14842) | Sean Quah | 2023-01-16 | 1 | -4/+4 |
* | Fix stack overflow in `_PerHostRatelimiter` due to synchronous requests (#14812) | Sean Quah | 2023-01-13 | 1 | -3/+42 |
* | Support RFC7636 PKCE in the OAuth 2.0 flow. (#14750) | Patrick Cloke | 2023-01-04 | 1 | -0/+1 |
* | Check the stream position before checking if the cache is empty. (#14639) | Patrick Cloke | 2022-12-08 | 1 | -3/+4 |
* | Better return type for `get_all_entities_changed` (#14604) | Erik Johnston | 2022-12-05 | 1 | -8/+12 |
* | Compare to the earliest known stream pos in the stream change cache. (#14435) | Patrick Cloke | 2022-12-05 | 1 | -25/+13 |
* | Add missing types to tests.util. (#14597) | Patrick Cloke | 2022-12-02 | 19 | -266/+357 |
* | Add missing type hints to test.util.caches (#14529) | Patrick Cloke | 2022-11-22 | 5 | -61/+69 |
* | Save login tokens in database (#13844) | Quentin Gliech | 2022-10-26 | 1 | -28/+0 |
* | Remove unused `@lru_cache` decorator (#13595) | Nick Mills-Barrett | 2022-10-25 | 1 | -36/+4 |
* | Bump flake8-bugbear from 21.3.2 to 22.9.23 (#14042) | dependabot[bot] | 2022-10-19 | 1 | -1/+1 |
* | Don't require `setuptools_rust` at runtime (#13952) | David Robertson | 2022-09-29 | 1 | -2/+18 |
* | Fix `have_seen_event` cache not being invalidated (#13863) | Eric Eastwood | 2022-09-27 | 1 | -1/+32 |
* | Make DictionaryCache have better expiry properties (#13292) | Erik Johnston | 2022-07-21 | 1 | -4/+31 |
* | Move the "email unsubscribe" resource, refactor the macaroon generator & simp... | Quentin Gliech | 2022-06-14 | 1 | -0/+146 |
* | Add config flags to allow for cache auto-tuning (#12701) | Shay | 2022-05-13 | 1 | -1/+57 |
* | Immediately retry any requests that have backed off when a server comes back ... | Erik Johnston | 2022-05-10 | 1 | -0/+80 |
* | Update `delay_cancellation` to accept any awaitable (#12468) | Sean Quah | 2022-04-22 | 1 | -2/+31 |
* | Fix edge case where a `Linearizer` could get stuck (#12358) | Sean Quah | 2022-04-05 | 1 | -4/+47 |
* | Update docstrings for `ReadWriteLock` tests (#12354) | Sean Quah | 2022-04-05 | 1 | -6/+6 |
* | Refactor and convert `Linearizer` to async (#12357) | Sean Quah | 2022-04-05 | 1 | -2/+2 |
* | Convert `Linearizer` tests from `inlineCallbacks` to async (#12353) | Sean Quah | 2022-04-05 | 1 | -91/+133 |
* | Try to detect borked package installations. (#12244) | David Robertson | 2022-03-18 | 1 | -1/+14 |
* | Add cancellation support to `@cached` and `@cachedList` decorators (#12183) | Sean Quah | 2022-03-14 | 1 | -2/+145 |
* | Add cancellation support to `ReadWriteLock` (#12120) | Sean Quah | 2022-03-14 | 1 | -58/+337 |
* | Add `delay_cancellation` utility function (#12180) | Sean Quah | 2022-03-14 | 1 | -6/+118 |
* | Allow for ignoring some arguments when caching. (#12189) | Patrick Cloke | 2022-03-09 | 1 | -3/+81 |
* | Merge branch 'master' into develop | Olivier Wilkinson (reivilibre) | 2022-03-08 | 1 | -0/+19 |
|\ |
|
| * | Fix a bug introduced in 1.54.0rc1 which meant that Synapse would refuse to st... | reivilibre | 2022-03-08 | 1 | -0/+19 |
* | | Merge remote-tracking branch 'origin/release-v1.54' into develop | Richard van der Hoff | 2022-03-04 | 1 | -2/+19 |
|\| |
|
| * | Don't impose version checks on dev extras at runtime (#12129) | David Robertson | 2022-03-03 | 1 | -2/+19 |
* | | Add test for `ObservableDeferred`'s cancellation behaviour (#12149) | Sean Quah | 2022-03-04 | 1 | -0/+28 |
|/ |
|
* | Use importlib.metadata to read requirements (#12088) | David Robertson | 2022-03-01 | 1 | -0/+95 |
* | Fix rare error in `ReadWriteLock` when writers complete immediately (#12105) | Sean Quah | 2022-03-01 | 1 | -0/+30 |
* | Add `stop_cancellation` utility function (#12106) | Sean Quah | 2022-03-01 | 1 | -0/+45 |
* | Fix 'Unhandled error in Deferred' (#12089) | Richard van der Hoff | 2022-03-01 | 1 | -5/+5 |
* | Improve exception handling for concurrent execution (#12109) | Richard van der Hoff | 2022-03-01 | 1 | -2/+113 |
* | Replace assertEquals and friends with non-deprecated versions. (#12092) | Patrick Cloke | 2022-02-28 | 6 | -151/+151 |
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -2/+2 |
* | Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11... | reivilibre | 2022-01-05 | 1 | -59/+0 |
* | Improve opentracing support for `ResponseCache` (#11607) | Richard van der Hoff | 2021-12-20 | 1 | -11/+34 |
* | Add missing type hints to `synapse.logging.context` (#11556) | Sean Quah | 2021-12-14 | 1 | -35/+0 |
* | Revert "Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common`... | Sean Quah | 2021-12-07 | 1 | -0/+59 |
* | Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common` (#11505) | Sean Quah | 2021-12-06 | 1 | -59/+0 |
* | Fix `LruCache` corruption bug with a `size_callback` that can return 0 (#11454) | Sean Quah | 2021-11-30 | 1 | -0/+12 |
* | Additional test for `cachedList` (#11246) | Richard van der Hoff | 2021-11-04 | 1 | -0/+43 |
* | ObservableDeferred: run observers in order (#11229) | Richard van der Hoff | 2021-11-02 | 2 | -4/+69 |
* | Use direct references for configuration variables (part 4). (#10893) | Patrick Cloke | 2021-09-23 | 1 | -1/+1 |
* | Use inline type hints in `tests/` (#10350) | Jonathan de Jong | 2021-07-13 | 2 | -10/+10 |
* | Add support for evicting cache entries based on last access time. (#10205) | Erik Johnston | 2021-07-05 | 1 | -1/+45 |
* | Extend `ResponseCache` to pass a context object into the callback (#10157) | Richard van der Hoff | 2021-06-14 | 1 | -7/+68 |
* | Rewrite the KeyRing (#10035) | Erik Johnston | 2021-06-02 | 1 | -21/+16 |
* | Fix up `BatchingQueue` (#10078) | Erik Johnston | 2021-05-27 | 1 | -2/+76 |
* | Combine `LruCache.invalidate` and `invalidate_many` (#9973) | Richard van der Hoff | 2021-05-27 | 1 | -3/+3 |
* | Add missing type hints to synapse.util (#9982) | Patrick Cloke | 2021-05-24 | 1 | -2/+2 |
* | Remove `keylen` from `LruCache`. (#9993) | Richard van der Hoff | 2021-05-24 | 2 | -4/+6 |
* | Don't hammer the database for destination retry timings every ~5mins (#10036) | Erik Johnston | 2021-05-21 | 1 | -7/+11 |
* | Add a batching queue implementation. (#10017) | Erik Johnston | 2021-05-21 | 1 | -0/+169 |
* | Minor `@cachedList` enhancements (#9975) | Richard van der Hoff | 2021-05-14 | 1 | -3/+14 |
* | Change the format of access tokens away from macaroons (#5588) | Richard van der Hoff | 2021-05-12 | 1 | -1/+7 |
* | Merge pull request from GHSA-x345-32rc-8h85 | Richard van der Hoff | 2021-05-11 | 1 | -0/+59 |
* | Merge branch 'master' into develop | Andrew Morgan | 2021-04-20 | 1 | -4/+2 |
|\ |
|
| * | Always use the name as the log ID. (#9829) | Patrick Cloke | 2021-04-20 | 1 | -4/+2 |
* | | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 21 | -21/+0 |
|/ |
|
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 4 | -6/+4 |
* | Bugbear: Add Mutable Parameter fixes (#9682) | Jonathan de Jong | 2021-04-08 | 1 | -2/+4 |
* | Record more information into structured logs. (#9654) | Patrick Cloke | 2021-04-08 | 2 | -28/+14 |
* | Add type hints to DictionaryCache and TTLCache. (#9442) | Patrick Cloke | 2021-03-29 | 1 | -1/+3 |
* | Add ResponseCache tests. (#9458) | Jonathan de Jong | 2021-03-08 | 1 | -0/+131 |
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 4 | -15/+23 |
* | Clean up caching/locking of OIDC metadata load (#9362) | Richard van der Hoff | 2021-02-16 | 1 | -0/+161 |
* | Fix chain cover update to handle events with duplicate auth events (#9210) | Erik Johnston | 2021-01-22 | 1 | -0/+12 |
* | Fix event chain bg update. (#9118) | Erik Johnston | 2021-01-14 | 1 | -0/+8 |
* | Use a chain cover index to efficiently calculate auth chain difference (#8868) | Erik Johnston | 2021-01-11 | 1 | -1/+40 |
* | Empty iterables should count towards cache usage. (#9028) | Patrick Cloke | 2021-01-06 | 1 | -23/+50 |
* | Implement and use an @lru_cache decorator (#8595) | Richard van der Hoff | 2020-10-30 | 1 | -1/+59 |
* | Add some more tests | Richard van der Hoff | 2020-10-21 | 2 | -0/+147 |
* | Push some deferred wrangling down into DeferredCache | Richard van der Hoff | 2020-10-21 | 2 | -12/+11 |
* | Combine the two sets of tests for CacheDescriptor | Richard van der Hoff | 2020-10-21 | 1 | -0/+230 |
* | Fix 'LruCache' object has no attribute '_on_resize' (#8591) | Richard van der Hoff | 2020-10-19 | 1 | -1/+7 |
* | Add `DeferredCache.get_immediate` method (#8568) | Richard van der Hoff | 2020-10-19 | 1 | -4/+23 |
* | Make LruCache register its own metrics (#8561) | Richard van der Hoff | 2020-10-16 | 1 | -2/+2 |
* | Combine the two sets of DeferredCache tests | Richard van der Hoff | 2020-10-14 | 1 | -2/+75 |
* | move DeferredCache into its own module | Richard van der Hoff | 2020-10-14 | 2 | -44/+64 |
* | Rename Cache->DeferredCache | Richard van der Hoff | 2020-10-14 | 1 | -2/+2 |
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 2 | -12/+12 |
* | Convert ReadWriteLock to async/await. (#8202) | Patrick Cloke | 2020-08-28 | 1 | -2/+4 |
* | Reduce run-times of tests by advancing the reactor less (#7757) | Andrew Morgan | 2020-08-27 | 1 | -1/+1 |
* | Remove the unused inlineCallbacks code-paths in the caching code (#8119) | Patrick Cloke | 2020-08-19 | 1 | -6/+6 |
* | Remove : from allowed client_secret chars (#8101) | Andrew Morgan | 2020-08-18 | 1 | -3/+0 |
* | Convert some util functions to async (#8035) | Patrick Cloke | 2020-08-06 | 1 | -33/+11 |
* | Fix some spelling mistakes / typos. (#7811) | Patrick Cloke | 2020-07-09 | 1 | -2/+2 |
* | Fix inconsistent handling of upper and lower cases of email addresses. (#7021) | Dirk Klimpel | 2020-07-03 | 1 | -0/+49 |
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 2 | -3/+1 |
* | Add test for Linearizer.is_queued(..) | Erik Johnston | 2020-05-27 | 1 | -0/+32 |
* | Allow configuration of Synapse's cache without using synctl or environment va... | Amber Brown | 2020-05-11 | 3 | -8/+5 |
* | Extend StreamChangeCache to support multiple entities per stream ID (#7303) | Richard van der Hoff | 2020-04-22 | 1 | -9/+60 |
* | Clean up some LoggingContext stuff (#7120) | Richard van der Hoff | 2020-03-24 | 4 | -28/+37 |
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -13/+5 |
* | Validate client_secret parameter (#6767) | Andrew Morgan | 2020-01-24 | 1 | -0/+51 |
* | Log saml assertions rather than the whole response | Richard van der Hoff | 2020-01-16 | 1 | -0/+47 |
* | Merge pull request #6505 from matrix-org/erikj/make_deferred_yiedable | Erik Johnston | 2019-12-10 | 1 | -0/+24 |
|\ |
|
| * | Fix make_deferred_yieldable to work with coroutines | Erik Johnston | 2019-12-10 | 1 | -0/+24 |
* | | Remove SnapshotCache in favour of ResponseCache | Erik Johnston | 2019-12-09 | 1 | -63/+0 |
|/ |
|
* | Make ObservableDeferred.observe() always return deferred. | Erik Johnston | 2019-10-30 | 1 | -2/+2 |
* | Quick fix to ensure cache descriptors always return deferreds | Erik Johnston | 2019-10-28 | 1 | -2/+2 |
* | Add 'failure_ts' column to 'destinations' table (#6016) | Richard van der Hoff | 2019-09-17 | 1 | -0/+127 |
* | Retry well-known lookup before expiry. | Erik Johnston | 2019-08-13 | 1 | -2/+2 |
* | Fix some error cases in the caching layer. (#5749) | Richard van der Hoff | 2019-07-25 | 1 | -3/+87 |
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -4/+4 |
* | Fixes to the federation rate limiter (#5621) | Richard van der Hoff | 2019-07-05 | 1 | -0/+97 |
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 5 | -47/+44 |
* | Fix media repo breaking (#5593) | Amber Brown | 2019-07-02 | 1 | -12/+21 |
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 2 | -53/+53 |
* | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 1 | -12/+11 |
* | Remove periods from copyright headers (#5046) | Andrew Morgan | 2019-04-11 | 1 | -1/+1 |
* | Add a caching layer to .well-known responses (#4516) | Richard van der Hoff | 2019-01-30 | 1 | -0/+83 |
* | Fix incorrect logcontexts after a Deferred was cancelled (#4407) | Richard van der Hoff | 2019-01-17 | 1 | -0/+104 |
* | Include eventid in log lines when processing incoming federation transactions... | Richard van der Hoff | 2018-09-27 | 1 | -0/+5 |
* | Fix some instances of ExpiringCache not expiring cache items | Erik Johnston | 2018-09-21 | 1 | -1/+0 |
* | Run black. | black | 2018-08-10 | 10 | -76/+41 |
* | Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678) | Amber Brown | 2018-08-10 | 2 | -2/+2 |
* | fix invalidation | Richard van der Hoff | 2018-07-27 | 1 | -1/+41 |
* | Rewrite cache list decorator | Richard van der Hoff | 2018-07-27 | 1 | -0/+61 |
* | Test and fix support for cancellation in Linearizer | Richard van der Hoff | 2018-07-20 | 1 | -0/+31 |
* | Combine Limiter and Linearizer | Richard van der Hoff | 2018-07-20 | 2 | -70/+47 |
* | Add a sleep to the Limiter to fix stack overflows. | Richard van der Hoff | 2018-07-20 | 1 | -4/+4 |
* | Add unit test | Erik Johnston | 2018-07-17 | 1 | -0/+16 |
* | Fixup unit test | Erik Johnston | 2018-07-13 | 1 | -3/+3 |
* | run isort | Amber Brown | 2018-07-09 | 14 | -30/+38 |
* | Reinstate lost run_on_reactor in unit test | Richard van der Hoff | 2018-07-04 | 1 | -2/+15 |
* | Disable partial state group caching for wildcard lookups | Richard van der Hoff | 2018-06-22 | 1 | -6/+6 |
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 3 | -11/+13 |
* | Remove run_on_reactor (#3395) | Amber Brown | 2018-06-14 | 1 | -2/+0 |
* | Port to sortedcontainers (with tests!) (#3332) | Amber Brown | 2018-06-06 | 1 | -0/+198 |
* | fix another dumb typo | Matthew Hodgson | 2018-05-29 | 1 | -2/+2 |
* | Merge branch 'develop' into rav/more_logcontext_leaks | Richard van der Hoff | 2018-05-02 | 1 | -0/+38 |
|\ |
|
| * | Fix incorrect reference to StringIO | Richard van der Hoff | 2018-05-02 | 1 | -0/+38 |
* | | Remove spurious unittest.DEBUG | Richard van der Hoff | 2018-05-02 | 1 | -1/+0 |
* | | Fix a class of logcontext leaks | Richard van der Hoff | 2018-05-02 | 1 | -11/+56 |
|/ |
|
* | Merge branch 'develop' into rav/deferred_timeout | Richard van der Hoff | 2018-04-27 | 2 | -2/+3 |
|\ |
|
| * | Make tests py3 compatible | Adrian Tschira | 2018-04-16 | 2 | -2/+3 |
* | | Use deferred.addTimeout instead of time_bound_deferred | Richard van der Hoff | 2018-04-23 | 1 | -33/+0 |
|/ |
|
* | Fix overzealous cache invalidation | Richard van der Hoff | 2018-04-05 | 1 | -0/+46 |
* | Merge pull request #2804 from matrix-org/erikj/file_consumer | Erik Johnston | 2018-01-18 | 1 | -0/+176 |
|\ |
|
| * | Move test stuff to tests | Erik Johnston | 2018-01-18 | 1 | -8/+46 |
| * | Add decent impl of a FileConsumer | Erik Johnston | 2018-01-17 | 1 | -0/+138 |
* | | Optimise LoggingContext creation and copying | Richard van der Hoff | 2018-01-16 | 1 | -8/+8 |
|/ |
|
* | Fix name of test_logcontext | Richard van der Hoff | 2017-10-17 | 1 | -0/+0 |
* | Add some tests for make_deferred_yieldable | Richard van der Hoff | 2017-10-17 | 1 | -0/+38 |
* | Fix stackoverflow and logcontexts from linearizer | Richard van der Hoff | 2017-10-11 | 1 | -4/+24 |
* | Make get_state_groups_from_groups faster. | Erik Johnston | 2017-05-17 | 1 | -1/+1 |
* | Fix up tests | Erik Johnston | 2017-03-30 | 2 | -1/+41 |
* | Fix the logcontext handling in the cache wrappers (#2077) | Richard van der Hoff | 2017-03-30 | 1 | -0/+91 |
* | Merge pull request #2052 from matrix-org/rav/time_bound_deferred | Richard van der Hoff | 2017-03-23 | 1 | -0/+33 |
|\ |
|
| * | Fix time_bound_deferred to throw the right exception | Richard van der Hoff | 2017-03-23 | 1 | -0/+33 |
* | | Fix caching of remote servers' signature keys | Richard van der Hoff | 2017-03-22 | 2 | -0/+100 |
|/ |
|
* | Stop preserve_fn leaking context into the reactor | Richard van der Hoff | 2017-03-18 | 1 | -0/+61 |
* | Tidy up test | Erik Johnston | 2017-01-17 | 1 | -12/+12 |
* | Speed up cache size calculation | Erik Johnston | 2017-01-17 | 1 | -15/+15 |
* | Add ExpiringCache tests | Erik Johnston | 2017-01-16 | 1 | -0/+84 |
* | Optionally measure size of cache by sum of length of values | Erik Johnston | 2017-01-13 | 1 | -0/+25 |
* | Add Limiter: limit concurrent access to resource | Erik Johnston | 2016-11-10 | 1 | -0/+70 |
* | Ensure invalidation list does not grow unboundedly | Erik Johnston | 2016-08-19 | 1 | -0/+40 |
* | Add concept of cache contexts | Erik Johnston | 2016-08-19 | 1 | -0/+113 |
* | Add ReadWriteLock | Erik Johnston | 2016-07-05 | 1 | -0/+85 |
* | Deduplicate joins | Erik Johnston | 2016-04-07 | 1 | -0/+44 |
* | Add a test for TreeCache.__contains__ | Mark Haines | 2016-02-22 | 1 | -0/+6 |
* | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 4 | -2/+2 |
* | Add wheeltimer impl | Erik Johnston | 2016-02-17 | 1 | -0/+74 |
* | Fix test | Erik Johnston | 2016-02-09 | 1 | -9/+1 |
* | Add tests | Erik Johnston | 2016-01-29 | 2 | -0/+19 |
* | Revert all the bits changing keys of eeverything that used LRUCaches to tuples | David Baker | 2016-01-22 | 1 | -22/+22 |
* | Make LRU cache not default to treecache & add options to use it | David Baker | 2016-01-22 | 1 | -1/+2 |
* | Test treecache directly | David Baker | 2016-01-22 | 1 | -0/+19 |
* | Add tests for treecache directly and test del_multi at the LruCache level too. | David Baker | 2016-01-22 | 1 | -0/+66 |
* | Change LRUCache to be tree-based so we can delete subtrees. | David Baker | 2016-01-21 | 1 | -22/+22 |
* | copyrights | Matthew Hodgson | 2016-01-07 | 4 | -4/+4 |
* | Add a unit test for the snapshot cache | Mark Haines | 2015-12-23 | 1 | -0/+60 |
* | Remove the LockManager class because it wasn't being used | Mark Haines | 2015-11-04 | 1 | -108/+0 |
* | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 2 | -4/+2 |
* | Move DictionaryCache | Erik Johnston | 2015-08-04 | 1 | -1/+1 |
* | Add basic dictionary cache | Erik Johnston | 2015-08-04 | 1 | -0/+101 |
* | Add a lru cache class | Mark Haines | 2015-02-11 | 1 | -0/+56 |
* | Add a request-id to each log line | Mark Haines | 2014-10-30 | 1 | -0/+43 |
* | Have all unit tests import from our own subclass of trial's unittest TestCase... | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -2/+2 |
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org has... | Matthew Hodgson | 2014-09-03 | 2 | -2/+2 |
* | add in copyrights to everything, not just the synapse subdir, and add a copyr... | Matthew Hodgson | 2014-08-13 | 2 | -0/+28 |
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 2 | -0/+95 |