MatrixSynapse/synapse
Patrick Cloke 8ec2217103
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.
2021-02-18 09:01:29 -05:00
..
_scripts
api
app
appservice
config
crypto
events
federation
groups
handlers
http Reduce the memory usage of previewing media files. (#9421) 2021-02-18 09:01:29 -05:00
logging
metrics
module_api
push
replication
res/templates
rest
server_notices
spam_checker_api
state
static
storage
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
secrets.py
server.py
types.py
visibility.py