From 4f6ef616263c3277a37d53f5e36d0b1651a041f6 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 6 Jun 2019 16:39:16 +0100 Subject: [PATCH] Increase the hard-timeout to 10 minutes. In practice most projects will still be limited to five minutes, but this allows us to bump up the limit for some projects, especially legacy v1 projects that have been imported to v2 --- app.coffee | 2 +- app/coffee/RequestParser.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.coffee b/app.coffee index fcf67c3..9bcdfeb 100644 --- a/app.coffee +++ b/app.coffee @@ -34,7 +34,7 @@ app.use Metrics.http.monitor(logger) # Compile requests can take longer than the default two # minutes (including file download time), so bump up the # timeout a bit. -TIMEOUT = 6 * 60 * 1000 +TIMEOUT = 10 * 60 * 1000 app.use (req, res, next) -> req.setTimeout TIMEOUT res.setTimeout TIMEOUT diff --git a/app/coffee/RequestParser.coffee b/app/coffee/RequestParser.coffee index c1912f6..9b94712 100644 --- a/app/coffee/RequestParser.coffee +++ b/app/coffee/RequestParser.coffee @@ -2,7 +2,7 @@ settings = require("settings-sharelatex") module.exports = RequestParser = VALID_COMPILERS: ["pdflatex", "latex", "xelatex", "lualatex"] - MAX_TIMEOUT: 300 + MAX_TIMEOUT: 600 parse: (body, callback = (error, data) ->) -> response = {}