Fetch server keys concurrently #985

Open
_ZN3val wants to merge 2 commits from concurrent-fetch-keys into next

2 commits

Author SHA1 Message Date
Val Lorentz
e7f4dd470e Add missing pub key in send_join handling 2023-12-12 18:41:06 +00:00
Val Lorentz
28db5ada33 Fetch server keys concurrently
This speeds up handling of /_matrix/federation/v1/send/:transaction_id
when more than one event contains unknown keys.

In particular, when receiving multiple PDUs with dead servers in their
auth chain, timeouts of each server accumulate and can make handling of
incoming requests take several minutes, to the point the client closes
the connection (eg. matrix.org has a 2 minute timeout), causing new
events to be dropped eventually.
2023-11-25 17:51:36 +00:00