mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
upped https connections to 300 and added debug logging
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user