0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-18 10:38:21 +02:00
synapse/synapse
Erik Johnston e29c44340b
Fix recursion error when fetching auth chain over federation (#7817)
When fetching the state of a room over federation we receive the event
IDs of the state and auth chain. We then fetch those events that we
don't already have.

However, we used a function that recursively fetched any missing auth
events for the fetched events, which can lead to a lot of recursion if
the server is missing most of the auth chain. This work is entirely
pointless because would have queued up the missing events in the auth
chain to be fetched already.

Let's just diable the recursion, since it only gets called from one
place anyway.
2020-07-10 18:15:35 +01:00
..
_scripts Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
api Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
app Pass original request headers from workers to the main process. (#7797) 2020-07-09 07:34:46 -04:00
appservice Convert the appservice handler to async/await. (#7775) 2020-07-06 07:40:35 -04:00
config Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
crypto Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
events Add HomeServer.signing_key property (#7805) 2020-07-08 17:51:56 +01:00
federation Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
groups Add HomeServer.signing_key property (#7805) 2020-07-08 17:51:56 +01:00
handlers Fix recursion error when fetching auth chain over federation (#7817) 2020-07-10 18:15:35 +01:00
http Add HomeServer.signing_key property (#7805) 2020-07-08 17:51:56 +01:00
logging isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
metrics Improve stacktraces from exceptions in background processes (#7808) 2020-07-09 13:01:33 +01:00
module_api Wrap register_device coroutine in an ensureDeferred (#7684) 2020-06-16 10:13:59 +01:00
push Don't ignore set_tweak actions with no explicit value. (#7766) 2020-07-06 11:43:41 +01:00
replication Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
res/templates Implement OpenID Connect-based login (#7256) 2020-05-08 08:30:40 -04:00
rest update_membership declaration: now always returns an event id. (#7809) 2020-07-09 13:01:42 +01:00
server_notices Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Add another yield point to state res v2 (#7746) 2020-06-26 10:44:52 +01:00
static Clean-up the fallback login code. (#7657) 2020-06-10 09:50:39 -04:00
storage Generate real events when we reject invites (#7804) 2020-07-09 10:40:19 +01:00
streams Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
util Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
__init__.py 1.17.0rc1 2020-07-09 16:53:19 +01:00
event_auth.py Fix recursion error when fetching auth chain over federation (#7817) 2020-07-10 18:15:35 +01:00
notifier.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
python_dependencies.py Allow to use higher versions of prometheus_client (#7780) 2020-07-06 10:21:41 +01:00
secrets.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
server.py Add HomeServer.signing_key property (#7805) 2020-07-08 17:51:56 +01:00
server.pyi Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
types.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
visibility.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00