summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-04-28 14:48:23 +0100
committerSean Quah <seanq@element.io>2022-04-28 19:28:00 +0100
commit5a9991c0f93b71b5eac8d6c47b1ba6d5bb2004c7 (patch)
tree953e295710c4db377937e0dacf41ce2bbf7bd1a2 /scripts-dev
parentAdd ability to cancel disconnected requests to `SynapseRequest` (diff)
downloadsynapse-5a9991c0f93b71b5eac8d6c47b1ba6d5bb2004c7.tar.xz
Capture the `Deferred` for request cancellation in `_AsyncResource`
All async request processing goes through `_AsyncResource`, so this is
the only place where a `Deferred` needs to be captured for cancellation.

Unfortunately, the same isn't true for determining whether a request
can be cancelled. Each of `RestServlet`, `BaseFederationServlet`,
`DirectServe{Html,Json}Resource` and `ReplicationEndpoint` have
different wrappers around the method doing the request handling and they
all need to be handled separately.

Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'scripts-dev')
0 files changed, 0 insertions, 0 deletions