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

Merge pull request #21883 from overleaf/ar-disable-keep-alive-remaining-services

Disable keepAlive in all services

GitOrigin-RevId: 9a3bac37e3fb09ee64b05cfda300dfe8d8672aad
Andrew Rumble 1 год назад
Родитель
Сommit
11213d85fe

+ 6 - 0
services/chat/config/settings.defaults.cjs

@@ -1,3 +1,9 @@
+const http = require('node:http')
+const https = require('node:https')
+
+http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
+
 module.exports = {
   internal: {
     chat: {

+ 4 - 0
services/clsi/config/settings.defaults.js

@@ -1,6 +1,10 @@
 const Path = require('node:path')
 const os = require('node:os')
+const http = require('node:http')
+const https = require('node:https')
 
+http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
 const isPreEmptible = os.hostname().includes('pre-emp')
 
 module.exports = {

+ 3 - 0
services/contacts/config/settings.defaults.cjs

@@ -1,6 +1,9 @@
 const http = require('node:http')
+const https = require('node:https')
+
 http.globalAgent.maxSockets = 300
 http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
 
 module.exports = {
   internal: {

+ 3 - 0
services/docstore/config/settings.defaults.js

@@ -1,6 +1,9 @@
 const http = require('node:http')
+const https = require('node:https')
+
 http.globalAgent.maxSockets = 300
 http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
 
 const Settings = {
   internal: {

+ 6 - 0
services/document-updater/config/settings.defaults.js

@@ -1,3 +1,9 @@
+const http = require('node:http')
+const https = require('node:https')
+
+http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
+
 module.exports = {
   internal: {
     documentupdater: {

+ 6 - 0
services/project-history/config/settings.defaults.cjs

@@ -1,3 +1,9 @@
+const http = require('node:http')
+const https = require('node:https')
+
+http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
+
 module.exports = {
   mongo: {
     url:

+ 5 - 0
services/real-time/config/settings.defaults.js

@@ -1,4 +1,9 @@
 /* eslint-disable camelcase */
+const http = require('node:http')
+const https = require('node:https')
+
+http.globalAgent.keepAlive = false
+https.globalAgent.keepAlive = false
 
 const settings = {
   redis: {