summary refs log tree commit diff
path: root/synapse/rest/client/transactions.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stabilize support for MSC3970: updated transaction semantics (scope to ↵Patrick Cloke2023-08-041-6/+6
| | | | | | | `device_id`) (#15629) For now this maintains compatible with old Synapses by falling back to using transaction semantics on a per-access token. A future version of Synapse will drop support for this.
* Experimental support for MSC3970: per-device transaction IDs (#15318)Quentin Gliech2023-04-251-0/+13
|
* Pass the Requester down to the HttpTransactionCache. (#15200)Quentin Gliech2023-03-071-30/+25
|
* Add missing type hints in tests (#14879)Patrick Cloke2023-01-261-1/+2
| | | | * FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
* Use `ParamSpec` in a few places (#12667)David Robertson2022-05-091-7/+12
|
* Additional type hints for client REST servlets (part 5) (#10736)Patrick Cloke2021-09-031-16/+36
| | | | Additionally this enforce type hints on all function signatures inside of the synapse.rest.client package.
* 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>`
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* 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-2/+1
|
* Port over enough to get some sytests running on Python 3 (#3668)Amber Brown2018-08-201-1/+1
|
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
|
* Make auth & transactions more testable (#3499)Amber Brown2018-07-141-23/+22
|
* Consistently use six's iteritems and wrap lazy keys/values in list() if ↵Amber Brown2018-05-311-1/+1
| | | | they're not meant to be lazy (#3307)
* Fix logcontext leak in HttpTransactionCacheRichard van der Hoff2018-05-211-25/+21
| | | | ONE DAY I WILL PURGE THE WORLD OF THIS EVIL
* Stop the transaction cache caching failuresRichard van der Hoff2018-05-211-9/+13
| | | | | | The transaction cache has some code which tries to stop it caching failures, but if the callback function failed straight away, then things would happen backwards and we'd end up with the failure stuck in the cache.
* Ordering is important on errbacks so add the cleanup func before creating an ↵Kegan Dougal2017-02-131-7/+7
| | | | ObservableDeferred
* Pop the txn from the map in case it has already been deleted somehowKegan Dougal2017-02-131-1/+1
|
* Don't cache errors at allKegan Dougal2017-02-131-10/+9
|
* http txns: Do not cache error responsesKegan Dougal2017-02-131-1/+10
| | | | | Previously we did. This meant that, amongst other errors, rate-limiting errors would be cached and prevent messages with that txn ID being sent.
* Fix spurious Unhandled Error log linesErik Johnston2017-01-121-1/+5
|
* Clean transactions based on time. Add HttpTransactionCache tests.Kegan Dougal2016-11-141-5/+19
|
* Move .observe() up to the cache to make things neaterKegan Dougal2016-11-141-5/+4
|
* Review commentsKegan Dougal2016-11-111-0/+85