Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Consistently use six's iteritems and wrap lazy keys/values in list() if ↵ | Amber Brown | 2018-05-31 | 1 | -2/+2 |
| | | | | they're not meant to be lazy (#3307) | ||||
* | replacing portions | Amber Brown | 2018-05-21 | 1 | -10/+7 |
| | |||||
* | Merge branch 'develop' into py3-xrange-1 | Richard van der Hoff | 2018-04-30 | 1 | -2/+3 |
|\ | |||||
| * | Use run_in_background in preference to preserve_fn | Richard van der Hoff | 2018-04-27 | 1 | -2/+3 |
| | | | | | | | | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object. | ||||
* | | Move more xrange to six | Adrian Tschira | 2018-04-28 | 1 | -1/+3 |
|/ | | | | | | plus a bonus next() Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Refactor store.have_events | Richard van der Hoff | 2018-04-20 | 1 | -1/+1 |
| | | | | | | It turns out that most of the time we were calling have_events, we were only using half of the result. Replace have_events with have_seen_events and get_rejection_reasons, so that we can see what's going on a bit more clearly. | ||||
* | Move property setting from ReplicationLayer to FederationBase | Erik Johnston | 2018-03-13 | 1 | -0/+1 |
| | |||||
* | Add federation_domain_whitelist option (#2820) | Matthew Hodgson | 2018-01-22 | 1 | -1/+4 |
| | | | | | | Add federation_domain_whitelist gives a way to restrict which domains your HS is allowed to federate with. useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network | ||||
* | Factor out `event_from_pdu_json` | Richard van der Hoff | 2017-12-30 | 1 | -21/+15 |
| | | | | | turns out we have two copies of this, and neither needs to be an instance method | ||||
* | federation_client: clean up imports | Richard van der Hoff | 2017-12-30 | 1 | -13/+10 |
| | |||||
* | Remove preserve_context_over_{fn, deferred} | Richard van der Hoff | 2017-11-14 | 1 | -2/+2 |
| | | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off. | ||||
* | Fix logcontexts in _check_sigs_and_hashes | Richard van der Hoff | 2017-09-20 | 1 | -4/+4 |
| | |||||
* | Fix some lies, and other clarifications, in docstrings | Richard van der Hoff | 2017-04-21 | 1 | -2/+48 |
| | | | | | The documentation on get_json has been wrong ever since the very first commit to synapse... | ||||
* | Ignore backoff history for invites, aliases, and roomdirs | Richard van der Hoff | 2017-03-23 | 1 | -2/+5 |
| | | | | | Add a param to the federation client which lets us ignore historical backoff data for federation queries, and set it for a handful of operations. | ||||
* | push federation retry limiter down to matrixfederationclient | Richard van der Hoff | 2017-03-23 | 1 | -20/+13 |
| | | | | | rather than having to instrument everywhere we make a federation call, make the MatrixFederationHttpClient manage the retry limiter. | ||||
* | Fix docstring | Richard van der Hoff | 2017-03-09 | 1 | -2/+1 |
| | |||||
* | Implement device key caching over federation | Erik Johnston | 2017-01-26 | 1 | -0/+10 |
| | |||||
* | Fix couple of federation state bugs | Erik Johnston | 2017-01-17 | 1 | -2/+4 |
| | |||||
* | limit total timeout for get_missing_events to 10s | Matthew Hodgson | 2016-12-31 | 1 | -1/+3 |
| | |||||
* | Remove fallback from get_missing_events. | Mark Haines | 2016-12-30 | 1 | -69/+0 |
| | | | | | | | get_missing_events used to fallback to fetching the missing events individually requesting from every server in the room, one by one.e This could be unacceptably slow, possibly causing #1732 | ||||
* | Add new API appservice specific public room list | Erik Johnston | 2016-12-06 | 1 | -2/+5 |
| | |||||
* | Use new federation_sender DI | Erik Johnston | 2016-11-16 | 1 | -49/+0 |
| | |||||
* | Add transaction queue and transport layer to DI | Erik Johnston | 2016-11-16 | 1 | -1/+0 |
| | |||||
* | Move logic into transaction_queue | Erik Johnston | 2016-11-16 | 1 | -14/+2 |
| | |||||
* | Rename transaction queue functions to send_* | Erik Johnston | 2016-11-16 | 1 | -7/+7 |
| | |||||
* | Time out typing over federation | Erik Johnston | 2016-09-23 | 1 | -2/+0 |
| | |||||
* | Support filtering remote room lists | Erik Johnston | 2016-09-16 | 1 | -2/+5 |
| | |||||
* | Pass since/from parameters over federation | Erik Johnston | 2016-09-15 | 1 | -18/+4 |
| | |||||
* | Merge pull request #1110 from matrix-org/markjh/e2e_timeout | Mark Haines | 2016-09-13 | 1 | -4/+8 |
|\ | | | | | Add a timeout parameter for end2end key queries. | ||||
| * | Add a timeout parameter for end2end key queries. | Mark Haines | 2016-09-12 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | | | | | Add a timeout parameter for controlling how long synapse will wait for responses from remote servers. For servers that fail include how they failed to make it easier to debug. Fetch keys from different servers in parallel rather than in series. Set the default timeout to 10s. | ||||
* | | Fix backfill when cannot find an event. | Erik Johnston | 2016-09-12 | 1 | -1/+1 |
|/ | | | | `get_pdu` can succeed but return None. | ||||
* | Clobber EDUs in send queue | Erik Johnston | 2016-09-09 | 1 | -2/+6 |
| | |||||
* | Add a new method to enqueue the device messages rather than sending a dummy EDU | Mark Haines | 2016-09-07 | 1 | -0/+6 |
| | |||||
* | Merge branch 'erikj/pdu_check' of github.com:matrix-org/synapse into develop | Erik Johnston | 2016-09-01 | 1 | -5/+5 |
|\ | |||||
| * | Ensure we only return a validated pdu in get_pdu | Erik Johnston | 2016-09-01 | 1 | -5/+5 |
| | | |||||
* | | Use state handler instead of get_users_in_room/get_joined_hosts | Erik Johnston | 2016-08-26 | 1 | -1/+4 |
|/ | |||||
* | Preserve some logcontexts | Erik Johnston | 2016-08-24 | 1 | -6/+11 |
| | |||||
* | Don't stop on 4xx series errors | Erik Johnston | 2016-08-10 | 1 | -11/+1 |
| | |||||
* | Also pull out rejected events | Erik Johnston | 2016-08-10 | 1 | -1/+1 |
| | |||||
* | Store if we fail to fetch an event from a destination | Erik Johnston | 2016-08-10 | 1 | -1/+36 |
| | |||||
* | Fix a couple of python bugs | Erik Johnston | 2016-08-05 | 1 | -6/+8 |
| | |||||
* | Retry joining via other servers if first one failed | Erik Johnston | 2016-08-05 | 1 | -5/+16 |
| | |||||
* | Fix typo | Erik Johnston | 2016-08-05 | 1 | -1/+1 |
| | |||||
* | Check if we already have the events returned by /state/ | Erik Johnston | 2016-08-05 | 1 | -2/+16 |
| | |||||
* | Fallback to /state/ on both 400 and 404 | Erik Johnston | 2016-08-05 | 1 | -1/+1 |
| | |||||
* | Tweak integrity error recovery to work as intended | Benjamin Saunders | 2016-08-04 | 1 | -1/+1 |
| | |||||
* | Fix typos. | Erik Johnston | 2016-08-04 | 1 | -3/+3 |
| | |||||
* | Tidy up get_events | Erik Johnston | 2016-08-04 | 1 | -12/+10 |
| | |||||
* | Rename fields to _ids | Erik Johnston | 2016-08-03 | 1 | -2/+2 |
| | |||||
* | Fix copy + paste fails | Erik Johnston | 2016-08-03 | 1 | -5/+10 |
| | |||||
* | Actually call get_room_state | Erik Johnston | 2016-08-03 | 1 | -0/+4 |
| | |||||
* | Fix syntax error | Erik Johnston | 2016-08-03 | 1 | -1/+8 |
| | |||||
* | Comment | Erik Johnston | 2016-08-03 | 1 | -0/+14 |
| | |||||
* | Add /state_ids federation API | Erik Johnston | 2016-08-03 | 1 | -3/+70 |
| | | | | | The new API only returns the event_ids for the state, as most requesters will already have the vast majority of the events already. | ||||
* | Linearize fetching of gaps on incoming events | Erik Johnston | 2016-06-15 | 1 | -0/+2 |
| | | | | | This potentially stops the server from doing multiple requests for the same data. | ||||
* | Apparently I am not permitted to have two blank lines here | David Baker | 2016-05-31 | 1 | -1/+0 |
| | |||||
* | Basic, un-cached support for secondary_directory_servers | David Baker | 2016-05-31 | 1 | -0/+21 |
| | |||||
* | Intern all the things | Erik Johnston | 2016-03-23 | 1 | -0/+1 |
| | |||||
* | Add profile information to invites | Erik Johnston | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | Fix flake8 warnings for new flake8 | Daniel Wagner-Hall | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Don't complain if /make_join response lacks 'prev_state' list (SYN-517) | Paul "LeoNerd" Evans | 2015-11-13 | 1 | -0/+6 |
| | |||||
* | Fix missing profile data in federation joins | Erik Johnston | 2015-11-12 | 1 | -1/+4 |
| | | | | | There was a regression where we stopped including profile data in initial joins for rooms joined over federation. | ||||
* | Exchange 3pid invites for m.room.member invites | Daniel Wagner-Hall | 2015-11-05 | 1 | -8/+25 |
| | |||||
* | Allow rejecting invites | Daniel Wagner-Hall | 2015-10-20 | 1 | -6/+61 |
| | | | | | This is done by using the same /leave flow as you would use if you had already accepted the invite and wanted to leave. | ||||
* | Look for keys on the right objects | Daniel Wagner-Hall | 2015-10-15 | 1 | -1/+3 |
| | |||||
* | Remove unnecessary class-wrapping | Daniel Wagner-Hall | 2015-10-13 | 1 | -3/+3 |
| | |||||
* | Move event contents into third_party_layout field | Daniel Wagner-Hall | 2015-10-13 | 1 | -2/+2 |
| | |||||
* | Fix lint errors | Daniel Wagner-Hall | 2015-10-06 | 1 | -1/+0 |
| | |||||
* | Implement third party identifier invites | Daniel Wagner-Hall | 2015-10-01 | 1 | -2/+7 |
| | |||||
* | Merge pull request #208 from matrix-org/markjh/end-to-end-key-federation | Mark Haines | 2015-08-18 | 1 | -0/+30 |
|\ | | | | | Federation for end-to-end key requests. | ||||
| * | Get the end-to-end key federation working | Mark Haines | 2015-07-24 | 1 | -8/+4 |
| | | |||||
| * | Add federation support for end-to-end key requests | Mark Haines | 2015-07-23 | 1 | -0/+34 |
| | | |||||
* | | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+1 |
|/ | |||||
* | Implement bulk verify_signed_json API | Erik Johnston | 2015-06-26 | 1 | -14/+43 |
| | |||||
* | Remove redundant for loop | Erik Johnston | 2015-05-22 | 1 | -3/+0 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-22 | 1 | -0/+2 |
|\ | | | | | | | erikj/backfill_fixes | ||||
| * | Add doc strings | Erik Johnston | 2015-05-22 | 1 | -0/+2 |
| | | |||||
* | | Merge branch 'erikj/join_perf' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-05-21 | 1 | -3/+3 |
|\| | | | | | | | erikj/backfill_fixes | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/join_perf | Erik Johnston | 2015-05-21 | 1 | -3/+3 |
| |\ | |||||
| | * | Remove pointless newline | Erik Johnston | 2015-05-18 | 1 | -1/+0 |
| | | | |||||
| | * | Remove debug logging | Erik Johnston | 2015-05-18 | 1 | -8/+0 |
| | | | |||||
| | * | Fix daedlock | Erik Johnston | 2015-05-15 | 1 | -3/+12 |
| | | | |||||
* | | | Actually fetch state for new backwards extremeties when backfilling. | Erik Johnston | 2015-05-20 | 1 | -1/+5 |
|/ / | |||||
* | | Add None check | Erik Johnston | 2015-05-19 | 1 | -1/+1 |
| | | |||||
* | | Add a timeout param to get_event | Erik Johnston | 2015-05-19 | 1 | -9/+14 |
|/ | |||||
* | Missed events are not outliers | Erik Johnston | 2015-05-05 | 1 | -1/+1 |
| | |||||
* | Replace the @metrics.counted annotations in federation with ↵ | Paul "LeoNerd" Evans | 2015-03-12 | 1 | -12/+15 |
| | | | | specifically-written counters and distributions | ||||
* | Initial attempt at sprinkling some @metrics.counted decorations around the ↵ | Paul "LeoNerd" Evans | 2015-03-12 | 1 | -0/+14 |
| | | | | federation code | ||||
* | Delete pointless (and unreachable) __init__ method from FederationClient | Paul "LeoNerd" Evans | 2015-03-12 | 1 | -2/+0 |
| | |||||
* | Remove unecessary check | Erik Johnston | 2015-03-05 | 1 | -6/+0 |
| | |||||
* | Respect min_depth argument | Erik Johnston | 2015-03-05 | 1 | -4/+6 |
| | |||||
* | Docs. | Erik Johnston | 2015-03-05 | 1 | -0/+16 |
| | |||||
* | Handle if get_missing_pdu returns 400 or not all events. | Erik Johnston | 2015-03-05 | 1 | -13/+96 |
| | |||||
* | Implement and use new batched get missing pdu | Erik Johnston | 2015-02-23 | 1 | -0/+19 |
| | |||||
* | Merge branch 'keyclient_retry_scheme' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-02-18 | 1 | -12/+25 |
|\ | | | | | | | develop | ||||
| * | Add per server retry limiting. | Erik Johnston | 2015-02-17 | 1 | -12/+24 |
| | | | | | | | | | | Factor out the pre destination retry logic from TransactionQueue so it can be reused in both get_pdu and crypto.keyring | ||||
* | | Rename _fail_fetch_pdu_cache to _get_pdu_cache | Erik Johnston | 2015-02-18 | 1 | -8/+8 |
| | | |||||
* | | Cache results of get_pdu. | Erik Johnston | 2015-02-16 | 1 | -3/+39 |
|/ | |||||
* | Connection errors in twisted aren't RuntimeErrors | Erik Johnston | 2015-02-05 | 1 | -2/+2 |
| | |||||
* | Pass through list of room hosts from room alias query to federation so that ↵ | Erik Johnston | 2015-02-05 | 1 | -1/+4 |
| | | | | it can retry against different room hosts | ||||
* | Apply sanity to the transport client interface. Convert 'make_join' and ↵ | Erik Johnston | 2015-02-04 | 1 | -31/+51 |
| | | | | 'send_join' to accept iterables of destinations | ||||
* | Retry make_join | Erik Johnston | 2015-02-04 | 1 | -7/+12 |
| | |||||
* | Keep around the old (buggy) version of the prune_event function so that we ↵ | Erik Johnston | 2015-02-03 | 1 | -94/+2 |
| | | | | can use it to check signatures for events on old servers | ||||
* | PEP8 | Erik Johnston | 2015-02-03 | 1 | -1/+0 |
| | |||||
* | Don't bother requesting PDUs with bad signatures from the same server | Erik Johnston | 2015-02-02 | 1 | -16/+17 |
| | |||||
* | Don't fail an entire request if one of the returned events fails a signature ↵ | Erik Johnston | 2015-02-02 | 1 | -26/+81 |
| | | | | check. If an event does fail a signature check, look in the local database and request it from the originator. | ||||
* | Fix bug where we superfluously asked for current state. Change API of ↵ | Erik Johnston | 2015-01-30 | 1 | -6/+1 |
| | | | | /query_auth/ so that we don't duplicate events in the response. | ||||
* | Initial implementation of auth conflict resolution | Erik Johnston | 2015-01-29 | 1 | -1/+1 |
| | |||||
* | Start implementing auth conflict res | Erik Johnston | 2015-01-28 | 1 | -0/+39 |
| | |||||
* | Make it the responsibility of the replication layer to check signature and ↵ | Erik Johnston | 2015-01-26 | 1 | -13/+95 |
| | | | | hashes. | ||||
* | Split up replication_layer module into client, server and transaction queue | Erik Johnston | 2015-01-26 | 1 | -0/+293 |