MatrixSynapse/synapse
Sean Quah 49a683d871
Fix long-standing bug where `ReadWriteLock` could drop logging contexts (#10993)
Use `PreserveLoggingContext()` to ensure that logging contexts are not
lost when exiting a read/write lock.

When exiting a read/write lock, callbacks on a `Deferred` are triggered
as a signal to any waiting coroutines. Any waiting coroutine that
becomes runnable is likely to follow the Synapse logging context rules
and will restore its own logging context, then either run to completion
or await another `Deferred`, resetting the logging context in the
process.
2021-10-08 12:27:16 +01:00
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 2021-10-01 11:39:17 -04:00
app Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
appservice Use inline type hints in various other places (in `synapse/`) (#10380) 2021-07-15 11:02:43 +01:00
config Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
crypto Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
events Add a spamchecker method to allow or deny 3pid invites (#10894) 2021-10-06 17:18:13 +02:00
federation Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 2021-10-01 11:39:17 -04:00
groups Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Don't alter directory entries for local users when setting a per-room nickname (#11002) 2021-10-07 13:26:11 +01:00
http Catch AttributeErrors when calling registerProducer (#10995) 2021-10-07 10:37:10 +00:00
logging Include exception in json logging (#11028) 2021-10-08 13:08:25 +02:00
metrics [pyupgrade] `synapse/` (#10348) 2021-07-19 15:28:05 +01:00
module_api Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
push Encode JSON responses on a thread in C, mk2 (#10905) 2021-09-28 09:37:58 +00:00
replication Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state `disallow-untyped-defs` for `synapse.state` (#11004) 2021-10-06 17:55:25 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Fix long-standing bug where `ReadWriteLock` could drop logging contexts (#10993) 2021-10-08 12:27:16 +01:00
__init__.py 1.44.0 2021-10-05 13:45:24 +01:00
event_auth.py Ensure that we reject events which use rejected events for auth (#10956) 2021-10-05 13:23:29 +01:00
notifier.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
python_dependencies.py Validate new m.room.power_levels events (#10232) 2021-08-26 17:07:58 +01:00
server.py Use direct references for some configuration variables (part 2) (#10812) 2021-09-15 08:34:52 -04:00
types.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
visibility.py [pyupgrade] `synapse/` (#10348) 2021-07-19 15:28:05 +01:00