Skip to content
Snippets Groups Projects
Unverified Commit c997bfb9 authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

Capture the `Deferred` for request cancellation in `_AsyncResource` (#12694)


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: default avatarSean Quah <seanq@element.io>
parent 29f06704
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment