Commit Graph

167 Commits (891dfd90bd97ad485d54dfae3e510c640de8e978)

Author SHA1 Message Date
Erik Johnston 2bf0e85f3d Use encode_canonical_json for http client 10 years ago
Kegan Dougal f518324426 Minor tweaks based on PR feedback. 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Erik Johnston 6370cffbbf Fix bug where variable was not always defined 10 years ago
Erik Johnston 05b961d7e3 PEP8 10 years ago
Erik Johnston dcf52469e8 Move time_bound_deferred into Clock 10 years ago
Erik Johnston 0e6b3e4e40 Time out HTTP federation requests 10 years ago
Erik Johnston 24cc6979fb Log when we receive a request, when we send a response and how long it took to process it. 10 years ago
Erik Johnston 9f2573eea1 Return body of response in HttpResponseException 10 years ago
Kegan Dougal 543e84fe70 Add SimpleHttpClient.put_json with the same semantics as get_json. 10 years ago
Kegan Dougal 6d3e4f4d0a Update user/alias query APIs to use new format of SimpleHttpClient.get_json 10 years ago
Kegan Dougal 96d4bf9012 Modify API for SimpleHttpClient.get_json and update usages. 10 years ago
Erik Johnston ae46f10fc5 Apply sanity to the transport client interface. Convert 'make_join' and 'send_join' to accept iterables of destinations 10 years ago
Erik Johnston 5a3a15f5c1 Make post_json(...) actually send data. 10 years ago
Erik Johnston c183cec8f6 Add post_json(...) method to federation client 10 years ago
Mark Haines 7b814d3f7f Add client v2_alpha resource to synapse server resource tree 10 years ago
Mark Haines e26340cee7 Start implementing the v2_alpha sync API 10 years ago
Mark Haines e0bf18addf Add RestServlet base class in synapse/http/servlet.py 10 years ago
David Baker ede491b4e0 Oops: second part of commit dc938606 10 years ago
Mark Haines 5fed042640 Finish renaming "context" to "room_id" in federation codebase 10 years ago
Mark Haines c9d2cecac9 SYN-231: User agent header broken 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 773de09774 Set a content-length for JSON responses 10 years ago
Mark Haines 24b5d01853 Include version in User-Agent and Server headers 10 years ago
Erik Johnston 1fc2a0e33e Fix tests and remove debug logging 10 years ago
Erik Johnston 7b43a503f3 Consistently url decode and decode as utf 8 the URL parts 10 years ago
Mark Haines d80d505b1f Limit the size of images that are thumbnailed serverside. Limit the size of file that a server will download from a remote server 10 years ago
Matthew Hodgson 0f4dcab238 turn back on per-request transaction retries, so that every time we try to hit a dead server we actually end up hammering 5 times :| 10 years ago
Erik Johnston b8d30899b1 Code style. 10 years ago
Matthew Hodgson faf12b64f8 add errbacks to enqueue_pdu deferreds; change logging for failed federation sends to warn rather than exception 10 years ago
Matthew Hodgson 2b1acb7671 squidge to 79 columns as per pep8 10 years ago
Matthew Hodgson aed62a3583 track replication destination health, and perform exponential back-off when sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover. 10 years ago
Mark Haines c01fd5573c Implement download support for media_repository 10 years ago
Mark Haines 5da65085d1 Get uploads working with new media repo 10 years ago
Mark Haines 279c48c8b4 Write the upload portion of version 1 of the media repository 10 years ago
Matthew Hodgson ae8ad55cb8 typos 10 years ago
David Baker eb6aedf92c More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP pokes work or not yet but the retry semantics are pretty good. 10 years ago
Mark Haines 610c2ea131 Fix pep8 and pyflakes warnings 10 years ago
David Baker e377d33652 Separate out the matrix http client completely because just about all of its code it now separate from the simple case we need for standard HTTP(S) 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines dfdda2c871 Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str' 10 years ago
David Baker dc60eee50e Refactor the HTTP clients a little. 10 years ago
David Baker cf66532ac1 CaptchaServerHttpClient should extend the base, not matrix http client. 10 years ago
Mark Haines 3e54d70ae2 SYN-141: Encode query params as UTF-8. 10 years ago
Matthew Hodgson 7df8c8c287 apply some cache headers to try to make the content repo less nutso 10 years ago
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Mark Haines b29517bd01 Add a request-id to each log line 10 years ago
Mark Haines 4be99c2989 Add get_json method to 3pid http client. Better logging for errors in 3pid requests 10 years ago
Mark Haines f74e850b5c remove debugging logging for signing requests 10 years ago
Mark Haines 6684855767 Verify signatures for server2server requests 10 years ago