forked-synapse/synapse/federation/transport
Richard van der Hoff 4876af06dd
Abort federation requests if the client disconnects early (#7930)
For inbound federation requests, if a given remote server makes too many
requests at once, we start stacking them up rather than processing them
immediatedly.

However, that means that there is a fair chance that the requesting server will
disconnect before we start processing the request. In that case, if it was a
read-only request (ie, a GET request), there is absolutely no point in
building a response (and some requests are quite expensive to handle).

Even in the case of a POST request, one of two things will happen:

 * Most likely, the requesting server will retry the request and we'll get the
   information anyway.

 * Even if it doesn't, the requesting server has to assume that we didn't get
   the memo, and act accordingly.

In short, we're better off aborting the request at this point rather than
ploughing on with what might be a quite expensive request.
2020-07-23 16:52:33 +01:00
..
__init__.py Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
client.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
server.py Abort federation requests if the client disconnects early (#7930) 2020-07-23 16:52:33 +01:00