summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-02-18 09:01:29 -0500
committerGitHub <noreply@github.com>2021-02-18 09:01:29 -0500
commit8ec221710329c157a0c83d401e592a325ae02c20 (patch)
tree18d2d3e555405132ab0a9bee5d2d1cd05e5680d2 /changelog.d
parentAdd http2 to the nginx example config (#9390) (diff)
downloadsynapse-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 'changelog.d')
-rw-r--r--changelog.d/9421.bugfix1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9421.bugfix b/changelog.d/9421.bugfix
new file mode 100644
index 0000000000..b73ed5664c
--- /dev/null
+++ b/changelog.d/9421.bugfix
@@ -0,0 +1 @@
+Reduce the amount of memory used when generating the URL preview of a file that is larger than the `max_spider_size`.