MatrixSynapse/synapse
Sean Quah c675a18071
Track ongoing event fetches correctly (again) (#11376)
The previous fix for the ongoing event fetches counter
(8eec25a1d9) was both insufficient and
incorrect.

When the database is unreachable, `_do_fetch` never gets run and so
`_event_fetch_ongoing` is never decremented.

The previous fix also moved the `_event_fetch_ongoing` decrement outside
of the `_event_fetch_lock` which allowed race conditions to corrupt the
counter.
2021-11-26 13:47:24 +00:00
..
_scripts Add type hints to synapse._scripts (#11297) 2021-11-10 17:55:32 +00:00
api Annotate string constants in `synapse.api.constants` with `Final` (#11356) 2021-11-25 16:14:23 +00:00
app Add type annotations to `synapse.metrics` (#10847) 2021-11-17 19:07:02 +00:00
appservice Prevent historical state from being pushed to an application service via `/transactions` (MSC2716) (#11265) 2021-11-18 14:16:08 -06:00
config Rename unstable `access_token_lifetime` configuration option to `refreshable_access_token_lifetime` to make it clear it only concerns refreshable access tokens. (#11388) 2021-11-23 17:01:34 +00:00
crypto Fix verification of objects signed with old local keys (#11379) 2021-11-19 10:55:09 +00:00
events Refactor the code to inject bundled relations during serialization. (#11408) 2021-11-23 06:43:56 -05:00
federation Split out federated PDU retrieval into a non-cached version (#11242) 2021-11-09 15:07:57 -06:00
groups Add type annotations to `synapse.metrics` (#10847) 2021-11-17 19:07:02 +00:00
handlers Rename unstable `access_token_lifetime` configuration option to `refreshable_access_token_lifetime` to make it clear it only concerns refreshable access tokens. (#11388) 2021-11-23 17:01:34 +00:00
http Add more type hints to synapse.util. (#11321) 2021-11-12 13:43:06 +00:00
logging Add missing type hints to `synapse.app`. (#11287) 2021-11-10 15:06:54 -05:00
metrics Add type annotations to `synapse.metrics` (#10847) 2021-11-17 19:07:02 +00:00
module_api Add missing type hints to config base classes (#11377) 2021-11-23 15:21:19 +00:00
push Add remaining type hints to `synapse.events`. (#11098) 2021-11-02 09:55:52 -04:00
replication Add missing type hints to `synapse.app`. (#11287) 2021-11-10 15:06:54 -05:00
res
rest Rename unstable `access_token_lifetime` configuration option to `refreshable_access_token_lifetime` to make it clear it only concerns refreshable access tokens. (#11388) 2021-11-23 17:01:34 +00:00
server_notices
spam_checker_api
state Add remaining type hints to `synapse.events`. (#11098) 2021-11-02 09:55:52 -04:00
static
storage Track ongoing event fetches correctly (again) (#11376) 2021-11-26 13:47:24 +00:00
streams
util Merge branch 'master' into develop 2021-11-23 13:06:56 +00:00
__init__.py 1.47.1 2021-11-19 14:08:59 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Fix providing a `RoomStreamToken` instance to `_notify_app_services_ephemeral` (#11137) 2021-11-02 10:39:02 +00:00
py.typed
python_dependencies.py
server.py Add missing type hints to `synapse.app`. (#11287) 2021-11-10 15:06:54 -05:00
types.py Misc typing fixes for `tests`, part 1 of N (#11323) 2021-11-12 15:50:54 +00:00
visibility.py