Commit Graph

31 Commits (7393c5ce4c831640f771ca32c8f22f7f2fd7fba2)

Author SHA1 Message Date
Erik Johnston 5358966a87 Use git aware version string in User-Agent and Server headers 10 years ago
Erik Johnston 7e9d59f3b4 Don't convert DNSLookupError to a 4xx SynapseError 10 years ago
Erik Johnston 65ca713ff5 Add .__name__ after type(e) 10 years ago
Erik Johnston 5e24471469 Fix up ResponseNeverReceived to str 10 years ago
Erik Johnston 0db52d43fa strings.join() expects iterable of strings 10 years ago
Erik Johnston 0647e27a41 Remove unused import 10 years ago
Erik Johnston 4de93001bf Make matrixfederationclient log more nicely 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 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 9f2573eea1 Return body of response in HttpResponseException 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 5fed042640 Finish renaming "context" to "room_id" in federation codebase 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 24b5d01853 Include version in User-Agent and Server headers 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 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
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
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
Mark Haines 10ef8e6e4b SYN-75 sign at the request level rather than the transaction level 10 years ago
Mark Haines 693d0b8f45 Replace on_send_callback with something a bit clearer so that we can sign messages 10 years ago
Mark Haines b9cdc443d7 Fix pyflakes errors 10 years ago
Mark Haines 574377636e Add a keyword argument to get_json to avoid retrying on DNS failures. Rather than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter 10 years ago
Mark Haines 4f11518934 Split PlainHttpClient into separate clients for talking to Identity servers and talking to Capatcha servers 10 years ago
Mark Haines c8d67beb9c remove "red", "blue" and "green" server_name mappings 10 years ago
Erik Johnston 6ac0b4ade8 Fix 'age' key to update on retries 10 years ago
Kegan Dougal 1829b55bb0 Captchas now work on registration. Missing x-forwarded-for config arg support. Missing reloading a new captcha on the web client / displaying a sensible error message. 10 years ago
David Baker d6ecbbdf0a Add support for registering with a threepid to the HS (get credentials from the client and check them against an ID server). 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Kegan Dougal 7fc84c7019 Make retrying requests on DNS failures configurable, and turn off retrying only in directory.get_association 10 years ago
Kegan Dougal b1195c125f hs: Updated synapse.http.client to handle DNSLookupErrors and bail immediately. 10 years ago
Mark Haines 5452a8ee29 Fix SSL for federation http client 10 years ago
Mark Haines a53946a8a1 Enable SSL for s2s http client 10 years ago
Matthew Hodgson a4da962bab fix http client GET parameters; somehow missing named param. how could this have ever worked!? 10 years ago