mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Set maxSockets to Infinity for all services
This commit is contained in:
parent
0215b12a5f
commit
738363a6de
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
URL = require "url"
|
URL = require "url"
|
||||||
seconds = 1000
|
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 =
|
module.exports = OpenSocketsMonitor =
|
||||||
monitor: (logger) ->
|
monitor: (logger) ->
|
||||||
interval = setInterval () ->
|
interval = setInterval () ->
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "metrics-sharelatex",
|
"name": "metrics-sharelatex",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue