forked-synapse/synapse
Sean Quah c997bfb926
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>
2022-05-10 20:39:05 +01:00
..
_scripts Add missing type hints to config classes. (#12402) 2022-04-11 12:07:23 -04:00
api Fix incorrect type hint in filtering code. (#12695) 2022-05-10 14:10:22 -04:00
app Add the update_user_directory_from_worker configuration option (superseding update_user_directory) to allow a generic worker to be designated as the worker to update the user directory. (#12654) 2022-05-10 11:08:45 +01:00
appservice Update mypy to 0.950 and fix complaints (#12650) 2022-05-06 12:35:20 +00:00
config Add the update_user_directory_from_worker configuration option (superseding update_user_directory) to allow a generic worker to be designated as the worker to update the user directory. (#12654) 2022-05-10 11:08:45 +01:00
crypto Bump black and click versions (#12320) 2022-04-05 11:04:28 +01:00
events Add some type hints to datastore. (#12477) 2022-05-10 14:07:48 -04:00
federation Fix inconsistent spelling of 'M_UNRECOGNIZED'. (#12665) 2022-05-09 20:29:07 +00:00
groups Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
handlers Add the update_user_directory_from_worker configuration option (superseding update_user_directory) to allow a generic worker to be designated as the worker to update the user directory. (#12654) 2022-05-10 11:08:45 +01:00
http Capture the Deferred for request cancellation in _AsyncResource (#12694) 2022-05-10 20:39:05 +01:00
logging Use getClientAddress instead of getClientIP. (#12599) 2022-05-04 14:11:21 -04:00
metrics Update mypy to 0.950 and fix complaints (#12650) 2022-05-06 12:35:20 +00:00
module_api Use ParamSpec in a few places (#12667) 2022-05-09 10:27:39 +00:00
push Move free functions into PushRuleEvaluatorForEvent. (#12677) 2022-05-10 07:54:30 -04:00
replication Update replication.md with info on TCP module structure (#12621) 2022-05-09 14:46:43 -07:00
res Fix Jinja templating error when generating thumbnail URLs. (#12510) 2022-04-20 12:03:03 -04:00
rest Fix mypy against latest pillow stubs (#12671) 2022-05-09 10:48:14 +00:00
server_notices Update the server notices user profile in room if changed. (#12115) 2022-04-08 07:51:27 -04:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state remove constantly lib use and switch to enums. (#12624) 2022-05-04 11:26:11 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Add some type hints to datastore. (#12477) 2022-05-10 14:07:48 -04:00
streams Generate historic pagination token for /messages when no ?from token provided (#12370) 2022-04-06 11:40:28 +01:00
util Immediately retry any requests that have backed off when a server comes back online. (#12500) 2022-05-10 10:39:54 +01:00
__init__.py Dump setuptools; correct pyproject version number (#12478) 2022-04-20 17:33:20 +01:00
event_auth.py Remove excess condition on knock->leave check (#11900) 2022-02-22 18:35:01 +00:00
notifier.py Immediately retry any requests that have backed off when a server comes back online. (#12500) 2022-05-10 10:39:54 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
types.py Make StreamToken and RoomStreamToken methods propagate cancellations (#12366) 2022-04-05 16:56:52 +01:00
visibility.py Optimise backfill calculation (#12522) 2022-04-26 10:27:11 +01:00