From 8ec221710329c157a0c83d401e592a325ae02c20 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 18 Feb 2021 09:01:29 -0500 Subject: 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. --- changelog.d/9421.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/9421.bugfix (limited to 'changelog.d/9421.bugfix') 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`. -- cgit 1.5.1