summary refs log tree commit diff
path: root/changelog.d/12694.misc
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-05-10 20:39:05 +0100
committerGitHub <noreply@github.com>2022-05-10 20:39:05 +0100
commitc997bfb926a29f0ec894fca889cc5eae603f4027 (patch)
tree05d4fde4ecef6b206b36bfa950db08b2ba36d662 /changelog.d/12694.misc
parentFix incorrect type hint in filtering code. (#12695) (diff)
downloadsynapse-c997bfb926a29f0ec894fca889cc5eae603f4027.tar.xz
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: Sean Quah <seanq@element.io>
Diffstat (limited to 'changelog.d/12694.misc')
-rw-r--r--changelog.d/12694.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/12694.misc b/changelog.d/12694.misc
new file mode 100644
index 0000000000..e1e956a513
--- /dev/null
+++ b/changelog.d/12694.misc
@@ -0,0 +1 @@
+Capture the `Deferred` for request cancellation in `_AsyncResource`.