mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 10:14:08 +00:00
increased length rate limit is in effect for
This commit is contained in:
parent
56635d2221
commit
ba58509a67
3 changed files with 5 additions and 4 deletions
services/web
app/coffee/Features
test/UnitTests/coffee/Compile
|
@ -50,9 +50,9 @@ module.exports = CompileController =
|
|||
else
|
||||
rateLimitOpts =
|
||||
endpointName: "full-pdf-download"
|
||||
throttle: 50
|
||||
throttle: 100
|
||||
subjectName : req.ip
|
||||
timeInterval : 60 * 5
|
||||
timeInterval : 60 * 10
|
||||
RateLimiter.addCount rateLimitOpts, callback
|
||||
|
||||
Project.findById project_id, {name: 1}, (err, project)->
|
||||
|
|
|
@ -9,6 +9,7 @@ Settings = require 'settings-sharelatex'
|
|||
logger = require('logger-sharelatex')
|
||||
GeoIpLookup = require("../../infrastructure/GeoIpLookup")
|
||||
SubscriptionDomainHandler = require("./SubscriptionDomainHandler")
|
||||
require("../../infrastructure/Sixpack")
|
||||
|
||||
module.exports = SubscriptionController =
|
||||
|
||||
|
|
|
@ -135,7 +135,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 100
|
||||
done()
|
||||
@CompileController.downloadPdf @req, @res
|
||||
|
||||
|
@ -144,7 +144,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 100
|
||||
done()
|
||||
@CompileController.downloadPdf @req, @res
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue