Skip to content
Snippets Groups Projects
  • Val Lorentz's avatar
    d0928206
    Fetch server keys concurrently · d0928206
    Val Lorentz authored
    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.
    d0928206
    History
    Fetch server keys concurrently
    Val Lorentz authored
    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.