mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
dropped throttle for full pdf download to 30 over 5 mins
1 download every 10 seconds which seems ample
This commit is contained in:
parent
615e4b448a
commit
23fd12c67d
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ module.exports = CompileController =
|
|||
else
|
||||
rateLimitOpts =
|
||||
endpointName: "full-pdf-download"
|
||||
throttle: 50
|
||||
throttle: 30
|
||||
|
||||
rateLimitOpts.subjectName = req.ip
|
||||
rateLimitOpts.timeInterval = 60 * 5
|
||||
|
|
|
@ -138,7 +138,7 @@ describe "CompileController", ->
|
|||
@req.query = {}
|
||||
@RateLimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileController.proxyToClsi = (project_id, url)=>
|
||||
@RateLimiter.addCount.args[0][0].throttle.should.equal 50
|
||||
@RateLimiter.addCount.args[0][0].throttle.should.equal 30
|
||||
done()
|
||||
@CompileController.downloadPdf @req, @res
|
||||
|
||||
|
@ -147,7 +147,7 @@ describe "CompileController", ->
|
|||
@req.query = {pdfng:false}
|
||||
@RateLimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileController.proxyToClsi = (project_id, url)=>
|
||||
@RateLimiter.addCount.args[0][0].throttle.should.equal 50
|
||||
@RateLimiter.addCount.args[0][0].throttle.should.equal 30
|
||||
done()
|
||||
@CompileController.downloadPdf @req, @res
|
||||
|
||||
|
|
Loading…
Reference in a new issue