summary refs log tree commit diff
path: root/synapse/rest/client/v1/base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clean transactions based on time. Add HttpTransactionCache tests.Kegan Dougal2016-11-141-1/+1
|
* Review commentsKegan Dougal2016-11-111-1/+2
|
* Store Promise<Response> instead of Response for HTTP API transactionsKegan Dougal2016-11-101-2/+2
| | | | | | | | | | | | | | | | | | 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.
* Dont invoke get_handlers fromClientV1RestServletErik Johnston2016-08-121-1/+0
| | | | | | hs.get_handlers() can not be invoked from split out processes. Moving the invocations down a level means that we can slowly split out individual servlets.
* Type annotationsRichard van der Hoff2016-07-191-0/+4
| | | | | Add some type annotations to help PyCharm (in particular) to figure out the types of a bunch of things.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Update endpoints to reflect current specDaniel Wagner-Hall2015-12-021-3/+4
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+8
|
* 1) Pushers are now associated with an access tokenDavid Baker2015-03-241-1/+1
| | | | 2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it.
* Extract the client v1 base RestServlet to a separate classMark Haines2015-01-231-34/+6
|
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+80