Commit Graph

230 Commits (4bbfbf898ecfe9bd77b02a7e014d94163d1fd534)

Author SHA1 Message Date
Erik Johnston 446ef58992 Add errback to all deferreds in transaction_queue 10 years ago
Mark Haines 2462aacd77 Restrict the destinations that synapse can talk to 10 years ago
Erik Johnston b68e4a729f Discard destination 'localhost' 10 years ago
Erik Johnston 47d3ff4cf8 Don't send failure to self 10 years ago
Erik Johnston e482541e1d Fix pyflakes 10 years ago
Erik Johnston ec847059f3 Rename _fail_fetch_pdu_cache to _get_pdu_cache 10 years ago
Erik Johnston 9371019133 Try to only back off if we think we failed to connect to the remote 10 years ago
Erik Johnston 2b8f1a956c Add per server retry limiting. 10 years ago
Erik Johnston 676e8ee78a Remove debug raise 10 years ago
Erik Johnston 659ead082f Format the response of transaction request in a nicer way 10 years ago
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 baa5b9a975 Cache results of get_pdu. 10 years ago
Erik Johnston 91fc5eef1d Mark old events as outliers. 10 years ago
Erik Johnston 6138584651 Don't return anything from _handle_new_pdu, since we ignore the return value anyway 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