anonymousland-synapse/synapse
Erik Johnston 313987187e Fix tightloop over connecting to replication server
If the client failed to process incoming commands during the initial set
up of the replication connection it would immediately disconnect and
reconnect, resulting in a tightloop.

This can happen, for example, when subscribing to a stream that has a
row that is too long in the backlog.

The fix here is to not consider the connection successfully set up until
the client has succesfully subscribed and caught up with the streams.
This ensures that the retry logic timers aren't reset until then,
meaning that if an error does happen during start up the client will
continue backing off before retrying again.
2019-02-26 15:05:41 +00:00
..
_scripts Fix flake8 (#4519) 2019-01-30 10:53:17 +00:00
api Merge remote-tracking branch 'origin/release-v0.99.0' into develop 2019-01-30 17:02:32 +00:00
app Correctly proxy exception in frontend_proxy worker 2019-02-23 15:17:57 +00:00
appservice Run the AS senders as background processes (#4189) 2018-12-04 10:53:49 +01:00
config Make not showing non-federated rooms the default 2019-02-26 11:52:52 +00:00
crypto raise_from already raises 2019-02-25 14:34:03 +00:00
events Enable room version v3 2019-01-29 23:09:10 +00:00
federation Merge branch 'develop' of github.com:matrix-org/synapse into anoa/public_rooms_federate_develop 2019-02-26 14:23:40 +00:00
groups Merge branch 'develop' of github.com:matrix-org/synapse into anoa/public_rooms_federate_develop 2019-02-26 14:23:40 +00:00
handlers Merge branch 'develop' of github.com:matrix-org/synapse into anoa/public_rooms_federate_develop 2019-02-26 14:23:40 +00:00
http Log tracebacks correctly 2019-02-25 16:56:41 +00:00
metrics Add metrics for number of outgoing EDUs, by type (#4695) 2019-02-20 14:13:14 +00:00
module_api Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
push Add missing return 2019-02-22 15:27:40 +00:00
replication Fix tightloop over connecting to replication server 2019-02-26 15:05:41 +00:00
res/templates Ship the email templates as package_data 2018-10-17 16:46:02 +01:00
rest Don't log stack trace when client has gone away during media download (#4738) 2019-02-25 11:17:22 -08:00
server_notices Merge branch 'develop' of github.com:matrix-org/synapse into erikj/admin_contact 2018-08-24 17:00:37 +01:00
state Enable room version v3 2019-01-29 23:09:10 +00:00
static switch from google.com to recaptcha.net for reCAPTCHA (#4731) 2019-02-25 11:15:36 -08:00
storage Fix state cache invalidation on workers 2019-02-22 14:38:14 +00:00
streams Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
util Add a caching layer to .well-known responses (#4516) 2019-01-30 10:55:25 +00:00
__init__.py 0.99.1.1 2019-02-14 17:20:02 +00:00
event_auth.py Merge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions_eiah 2019-01-29 22:58:38 +00:00
notifier.py Make the metrics less racy (#4061) 2018-10-19 21:45:45 +11:00
python_dependencies.py Merge pull request #4632 from matrix-org/erikj/basic_sentry 2019-02-18 17:22:45 +00:00
secrets.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
server.py Fix registration on workers (#4682) 2019-02-20 18:47:31 +11:00
server.pyi Revert "Prevent showing non-fed rooms in fed /publicRooms" 2019-02-26 13:20:38 +00:00
types.py Factor SSO success handling out of CAS login (#4264) 2018-12-07 13:10:07 +01:00
visibility.py Refactor state group lookup to reduce DB hits (#4011) 2018-10-25 17:49:55 +01:00