mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
upped https connections to 300 and added debug logging
This commit is contained in:
parent
fada5ecaf4
commit
99e15dc12f
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
http = require('http')
|
||||
http.globalAgent.maxSockets = 300
|
||||
https = require('https')
|
||||
https.globalAgent.maxSockets = 300
|
||||
settings = require("settings-sharelatex")
|
||||
request = require("request")
|
||||
logger = require("logger-sharelatex")
|
||||
|
@ -11,6 +13,14 @@ _ = require("underscore")
|
|||
|
||||
thirtySeconds = 30 * 1000
|
||||
|
||||
|
||||
printSockets = ->
|
||||
console.log require('https').globalAgent.sockets
|
||||
console.log require('http').globalAgent.sockets
|
||||
setTimeout printSockets, thirtySeconds
|
||||
|
||||
printSockets()
|
||||
|
||||
buildDefaultOptions = (bucketName, method, key)->
|
||||
return {
|
||||
aws:
|
||||
|
|
Loading…
Reference in a new issue