mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-26 09:24:15 +00:00
Increase req and res stream timeouts to 3 minutes
This commit is contained in:
parent
9261987bd8
commit
f8819fbbd7
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@ app = express()
|
|||
|
||||
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 = threeMinutes = 3 * 60 * 1000
|
||||
app.use (req, res, next) ->
|
||||
req.setTimeout TIMEOUT
|
||||
res.setTimeout TIMEOUT
|
||||
next()
|
||||
|
||||
app.post "/project/:project_id/compile", bodyParser.json(limit: "5mb"), CompileController.compile
|
||||
app.delete "/project/:project_id", CompileController.clearCache
|
||||
|
||||
|
|
Loading…
Reference in a new issue