mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
429ecb7564
Prior to this PR, remote downloads which did not provide a `content-length` were decremented from the remote download ratelimiter at the max allowable size, leading to excessive ratelimiting - see https://github.com/element-hq/synapse/issues/17394. This PR adds a linearizer to limit concurrent remote downloads to 6 per IP address, and decrements remote downloads without a `content-length` from the ratelimiter *after* the download is complete and the response length is known. Also adds logic to ensure that responses with a known length respect the `max_download_size`. |
||
---|---|---|
.. | ||
.gitignore | ||
17387.doc | ||
17416.feature | ||
17418.feature | ||
17419.feature | ||
17423.doc | ||
17424.misc | ||
17426.misc | ||
17429.feature | ||
17432.feature | ||
17434.bugfix | ||
17438.bugfix | ||
17439.bugfix | ||
17449.bugfix |