Commit Graph

153 Commits (c82e26ad4ba80742adc68a7e8c52441d760e4746)

Author SHA1 Message Date
Erik Johnston c82e26ad4b Actually respond with JSON to incoming transaction 10 years ago
Erik Johnston 02bfa889de Handle recieving failures in transactions 10 years ago
Erik Johnston 72a4de2ce6 Use consumeErrors=True on all DeferredLists. 10 years ago
Erik Johnston 789251afa7 Fix logging 10 years ago
Erik Johnston 58d848adc0 Parrellize fetching of events 10 years ago
Erik Johnston 963256638d Correctly handle all the places that can throw exceptions 10 years ago
Erik Johnston ef276e8770 Fix so timing out connections to actually work. 10 years ago
Erik Johnston ddb816cf60 Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder that understands FrozenDict 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Erik Johnston c8e1da930d Log all the exits from _attempt_new_transaction 10 years ago
Erik Johnston 697ab75a34 Sign auth_chains when returned by /state/ requests 10 years ago
Erik Johnston e9c85a4d5a Connection errors in twisted aren't RuntimeErrors 10 years ago
Erik Johnston e1515c3e91 Pass through list of room hosts from room alias query to federation so that it can retry against different room hosts 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 ff78eded01 Retry make_join 10 years ago
Erik Johnston 3c39f42a05 New line 10 years ago
Erik Johnston 9bace3a367 Actually, the old prune_event function was non-deterministic, so no point keeping it around :( 10 years ago
Erik Johnston 8dae5c8108 Remove unused imports 10 years ago
Erik Johnston 7b810e136e Add new FederationBase 10 years ago
Erik Johnston 0dd3aea319 Keep around the old (buggy) version of the prune_event function so that we can use it to check signatures for events on old servers 10 years ago
Erik Johnston 0f48e22ef6 PEP8 10 years ago
Erik Johnston 40c6fe1b81 Don't bother requesting PDUs with bad signatures from the same server 10 years ago
Erik Johnston 941f59101b Don't fail an entire request if one of the returned events fails a signature check. If an event does fail a signature check, look in the local database and request it from the originator. 10 years ago
Erik Johnston 776ac820f9 Briefly doc structure of query_auth API. 10 years ago
Erik Johnston a70a801184 Fix bug where we superfluously asked for current state. Change API of /query_auth/ so that we don't duplicate events in the response. 10 years ago
Erik Johnston c1d860870b Fix regression where we no longer correctly handled the case of gaps in our event graph 10 years ago
Erik Johnston 78015948a7 Initial implementation of auth conflict resolution 10 years ago
Erik Johnston 0ef5bfd6a9 Start implementing auth conflict res 10 years ago
Erik Johnston c92d64a6c3 Make it the responsibility of the replication layer to check signature and hashes. 10 years ago
Erik Johnston 7b88619241 Split up replication_layer module into client, server and transaction queue 10 years ago
Erik Johnston ca65a9d03e Split out TransactionQueue from replication layer 10 years ago
Mark Haines 5fed042640 Finish renaming "context" to "room_id" in federation codebase 10 years ago
Mark Haines 2408c4b0a4 Fold _do_request_for_transaction into the methods that called it since it was a trivial wrapper around client.get_json 10 years ago
Mark Haines 602684eac5 Split transport layer into client and server parts 10 years ago
Matrix 0529a7e2e9 Add some logging for when we are sending transactions. 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 041ac476a5 Supply auth_chain along with current state in '/state/', fetch auth events from a remote server if we are missing some of them 10 years ago
Erik Johnston 52f99243ab Use is_outlier() so that we don't get AttributeError 10 years ago
Erik Johnston 3c77d13aa5 Kill off synapse.api.events.* 10 years ago
Erik Johnston 95aa903ffa Try and figure out how and why signatures are being changed. 10 years ago
Erik Johnston b8d30899b1 Code style. 10 years ago
Matthew Hodgson 71da2bed55 plateau retries after 1h 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 8529fba02d fix a million stupid bugs and make it actually work 10 years ago
Erik Johnston ee3df06183 More bug fixes 10 years ago
Erik Johnston d044121168 Various typos and bug fixes. 10 years ago
Matthew Hodgson 9c43b258ec actually reset retry schedule if we can successfuly talk to it 10 years ago
Matthew Hodgson 5cd43d4b9f fix stupid syntax thinkos 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