diff options
author | Erik Johnston <erikj@element.io> | 2024-08-14 12:41:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 12:41:53 +0100 |
commit | a51daffba5e58489f93f76a074aa7d6f73533226 (patch) | |
tree | 763af7bc988d7617825aefb30f56a4b250a048f4 /synapse/util/async_helpers.py | |
parent | Handle lower-case http headers in `_Mulitpart_Parser_Protocol` (#17545) (diff) | |
download | synapse-a51daffba5e58489f93f76a074aa7d6f73533226.tar.xz |
Reduce concurrent thread usage in media (#17567)
Follow on from #17558 Basically, we want to reduce the number of threads we want to use at a time, i.e. reduce the number of threads that are paused/blocked. We do this by returning from the thread when the consumer pauses the producer, rather than pausing in the thread. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r-- | synapse/util/async_helpers.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/synapse/util/async_helpers.py b/synapse/util/async_helpers.py |