diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-02-18 09:01:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 09:01:29 -0500 |
commit | 8ec221710329c157a0c83d401e592a325ae02c20 (patch) | |
tree | 18d2d3e555405132ab0a9bee5d2d1cd05e5680d2 /tests/storage/test_state.py | |
parent | Add http2 to the nginx example config (#9390) (diff) | |
download | synapse-8ec221710329c157a0c83d401e592a325ae02c20.tar.xz |
Reduce the memory usage of previewing media files. (#9421)
This reduces the memory usage of previewing media files which end up larger than the `max_spider_size` by avoiding buffering content internally in treq. It also checks the `Content-Length` header in additional places instead of streaming the content to check the body length.
Diffstat (limited to 'tests/storage/test_state.py')
0 files changed, 0 insertions, 0 deletions