mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-01 19:12:01 +00:00
![Sean Quah](/assets/img/avatar_default.png)
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>
2 lines
69 B
Plaintext
2 lines
69 B
Plaintext
Capture the `Deferred` for request cancellation in `_AsyncResource`.
|