Просмотр исходного кода

upped https connections to 300 and added debug logging

Henry Oswald 12 лет назад
Родитель
Сommit
99e15dc12f
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      services/filestore/app/coffee/s3Wrapper.coffee

+ 10 - 0
services/filestore/app/coffee/s3Wrapper.coffee

@@ -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: