upped https connections to 300 and added debug logging

This commit is contained in:
Henry Oswald 2014-02-19 21:03:03 +00:00
parent fada5ecaf4
commit 99e15dc12f

View file

@ -1,5 +1,7 @@
http = require('http') http = require('http')
http.globalAgent.maxSockets = 300 http.globalAgent.maxSockets = 300
https = require('https')
https.globalAgent.maxSockets = 300
settings = require("settings-sharelatex") settings = require("settings-sharelatex")
request = require("request") request = require("request")
logger = require("logger-sharelatex") logger = require("logger-sharelatex")
@ -11,6 +13,14 @@ _ = require("underscore")
thirtySeconds = 30 * 1000 thirtySeconds = 30 * 1000
printSockets = ->
console.log require('https').globalAgent.sockets
console.log require('http').globalAgent.sockets
setTimeout printSockets, thirtySeconds
printSockets()
buildDefaultOptions = (bucketName, method, key)-> buildDefaultOptions = (bucketName, method, key)->
return { return {
aws: aws: