Просмотр исходного кода

Merge pull request #4262 from overleaf/jpa-bump-sync-overhead

[ClsiManager] bump sync overhead from 60s to 120s

GitOrigin-RevId: ce968a054419a3ad8e6b0bd0ff5897aae3643f8c
Jakob Ackermann 5 лет назад
Родитель
Сommit
15978e1510

+ 1 - 1
services/web/app/src/Features/Compile/ClsiManager.js

@@ -25,7 +25,7 @@ const Errors = require('../Errors/Errors')
 const VALID_COMPILERS = ['pdflatex', 'latex', 'xelatex', 'lualatex']
 // see clsi: RequestParser.MAX_TIMEOUT
 const DEFAULT_TIMEOUT = 600
-const OVERHEAD_SYNC_AND_OUTPUT = 60 * 1000
+const OVERHEAD_SYNC_AND_OUTPUT = 120 * 1000
 
 const ClsiManager = {
   sendRequest(projectId, userId, options, callback) {

+ 1 - 1
services/web/test/unit/src/Compile/ClsiManagerTests.js

@@ -941,7 +941,7 @@ describe('ClsiManager', function () {
             method: 'POST',
             url,
             json: this.req,
-            timeout: 42 * 1000 + 60 * 1000,
+            timeout: 42 * 1000 + 120 * 1000,
           })
           .should.equal(true)
       })