summary refs log tree commit diff
path: root/synapse/rest/client/v1/transactions.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Review commentsKegan Dougal2016-11-111-75/+0
|
* Use ObservableDeferreds instead of Deferreds as they behave as intendedKegan Dougal2016-11-111-11/+11
|
* Store Promise<Response> instead of Response for HTTP API transactionsKegan Dougal2016-11-101-37/+15
| | | | | | | | | | | | | | | | | | This fixes a race whereby: - User hits an endpoint. - No cached transaction so executes main code. - User hits same endpoint. - No cache transaction so executes main code. - Main code finishes executing and caches response and returns. - Main code finishes executing and caches response and returns. This race is common in the wild when Synapse is struggling under load. This commit fixes the race by: - User hits an endpoint. - Caches the promise to execute the main code and executes main code. - User hits same endpoint. - Yields on the same promise as the first request. - Main code finishes executing and returns, unblocking both requests.
* Add helper function for getting access_tokens from requestsMark Haines2016-09-091-1/+3
| | | | | | Rather than reimplementing the token parsing in the various places. This will make it easier to change the token parsing to allow access_tokens in HTTP headers.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Remove access_token from synapse.rest.client.v1.transactions ↵Erik Johnston2015-06-161-3/+3
| | | | {get,store}_response logging
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+95