mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Set maxSockets to Infinity for all services
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
URL = require "url"
|
||||
seconds = 1000
|
||||
|
||||
# In Node 0.10 the default is 5, which means only 5 open connections at one.
|
||||
# Node 0.12 has a default of Infinity. Make sure we have no limit set,
|
||||
# regardless of Node version.
|
||||
require("http").globalAgent.maxSockets = Infinity
|
||||
require("https").globalAgent.maxSockets = Infinity
|
||||
|
||||
module.exports = OpenSocketsMonitor =
|
||||
monitor: (logger) ->
|
||||
interval = setInterval () ->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "metrics-sharelatex",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user