limit max imported file size to 250 MiB, #3108

This commit is contained in:
zadam
2022-09-03 15:11:03 +02:00
parent 7f566178d3
commit b2a63afc28
5 changed files with 578 additions and 254 deletions

View File

@@ -215,7 +215,7 @@ function update(req) {
setInterval(() => {
for (const key in partialRequests) {
if (Date.now() - partialRequests[key].createdAt > 5 * 60 * 1000) {
if (Date.now() - partialRequests[key].createdAt > 20 * 60 * 1000) {
log.info(`Cleaning up unfinished partial requests for ${key}`);
delete partialRequests[key];