forked-synapse/synapse
Erik Johnston b970cb0e96 Refactor request sending to have better excpetions (#4358)
* Correctly retry and back off if we get a HTTPerror response

* Refactor request sending to have better excpetions

MatrixFederationHttpClient blindly reraised exceptions to the caller
without differentiating "expected" failures (e.g. connection timeouts
etc) versus more severe problems (e.g. programming errors).

This commit adds a RequestSendFailed exception that is raised when
"expected" failures happen, allowing the TransactionQueue to log them as
warnings while allowing us to log other exceptions as actual exceptions.
2019-01-08 11:04:28 +00:00
..
_scripts create support user (#4141) 2018-12-14 18:20:59 +00:00
api Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
app Check jinja version for consent resource (#4327) 2019-01-07 10:14:31 +00:00
appservice Run the AS senders as background processes (#4189) 2018-12-04 10:53:49 +01:00
config Fix synapse.config.__main__ on python 3 (#4356) 2019-01-08 10:03:09 +11:00
crypto Remove fetching keys via the deprecated v1 kex method (#4120) 2018-10-31 23:14:39 +11:00
events Add helpers for getting prev and auth events (#4139) 2018-11-06 00:35:15 +11:00
federation Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
groups Fix some looping_call calls which were broken in #3604 2018-07-26 11:48:08 +01:00
handlers fix NPE in /messages by checking if all events were filtered out (#4330) 2019-01-02 23:37:39 +00:00
http Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
metrics Fix exception in background metrics collection 2018-10-03 11:28:01 +01:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Fix logcontext leak in EmailPusher 2018-11-19 17:07:01 +00:00
replication Don't truncate command name in metrics 2018-10-29 17:34:21 +00:00
res/templates Ship the email templates as package_data 2018-10-17 16:46:02 +01:00
rest Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00: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 Merge pull request #4307 from matrix-org/erikj/v2_rooms 2018-12-24 10:48:59 +01:00
static Improved welcome page (#4294) 2018-12-14 05:13:56 +11:00
storage Ensure synchrotrons can access is_support_user in the storage layer 2019-01-02 10:19:59 +00:00
streams Fix develop because I broke it :( (#3535) 2018-07-14 09:51:00 +10:00
util Fix UnicodeDecodeError when postgres is not configured in english (#4253) 2018-12-04 11:55:52 +01:00
__init__.py Prepare 0.34 release 2018-12-20 12:07:15 +00:00
event_auth.py Add helpers for getting prev and auth events (#4139) 2018-11-06 00:35:15 +11:00
notifier.py Make the metrics less racy (#4061) 2018-10-19 21:45:45 +11:00
python_dependencies.py Check jinja version for consent resource (#4327) 2019-01-07 10:14:31 +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 Write some tests for the email pusher (#4095) 2018-10-30 23:55:43 +11:00
server.pyi Basic initial support for room upgrades 2018-10-25 19:10:24 +01: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