mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #126 from overleaf/sk-increase-hard-timeout
Increase the hard-timeout to 10 minutes.
This commit is contained in:
commit
12efec605c
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ app.use Metrics.http.monitor(logger)
|
||||||
# Compile requests can take longer than the default two
|
# Compile requests can take longer than the default two
|
||||||
# minutes (including file download time), so bump up the
|
# minutes (including file download time), so bump up the
|
||||||
# timeout a bit.
|
# timeout a bit.
|
||||||
TIMEOUT = 6 * 60 * 1000
|
TIMEOUT = 10 * 60 * 1000
|
||||||
app.use (req, res, next) ->
|
app.use (req, res, next) ->
|
||||||
req.setTimeout TIMEOUT
|
req.setTimeout TIMEOUT
|
||||||
res.setTimeout TIMEOUT
|
res.setTimeout TIMEOUT
|
||||||
|
|
|
@ -2,7 +2,7 @@ settings = require("settings-sharelatex")
|
||||||
|
|
||||||
module.exports = RequestParser =
|
module.exports = RequestParser =
|
||||||
VALID_COMPILERS: ["pdflatex", "latex", "xelatex", "lualatex"]
|
VALID_COMPILERS: ["pdflatex", "latex", "xelatex", "lualatex"]
|
||||||
MAX_TIMEOUT: 300
|
MAX_TIMEOUT: 600
|
||||||
|
|
||||||
parse: (body, callback = (error, data) ->) ->
|
parse: (body, callback = (error, data) ->) ->
|
||||||
response = {}
|
response = {}
|
||||||
|
|
Loading…
Reference in a new issue