mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-21 23:53:51 +00:00
Merge pull request #1848 from overleaf/sk-increase-compile-timeout-hard-limit-10
Increase compile socket timeout to 10 minutes GitOrigin-RevId: 93712c493c67bf54022df43175d331557b7cf49a
This commit is contained in:
parent
0cc4f6d329
commit
f6c2cfe727
1 changed files with 4 additions and 2 deletions
|
@ -31,12 +31,14 @@ const ClsiCookieManager = require('./ClsiCookieManager')(
|
|||
)
|
||||
const Path = require('path')
|
||||
|
||||
const COMPILE_TIMEOUT_MS = 10 * 60 * 1000
|
||||
|
||||
module.exports = CompileController = {
|
||||
compile(req, res, next) {
|
||||
if (next == null) {
|
||||
next = function(error) {}
|
||||
}
|
||||
res.setTimeout(5 * 60 * 1000)
|
||||
res.setTimeout(COMPILE_TIMEOUT_MS)
|
||||
const project_id = req.params.Project_id
|
||||
const isAutoCompile = !!(req.query != null
|
||||
? req.query.auto_compile
|
||||
|
@ -118,7 +120,7 @@ module.exports = CompileController = {
|
|||
if (next == null) {
|
||||
next = function(error) {}
|
||||
}
|
||||
res.setTimeout(5 * 60 * 1000)
|
||||
res.setTimeout(COMPILE_TIMEOUT_MS)
|
||||
const { submission_id } = req.params
|
||||
const options = {}
|
||||
if ((req.body != null ? req.body.rootResourcePath : undefined) != null) {
|
||||
|
|
Loading…
Reference in a new issue