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

Disable keepAlive in all services

GitOrigin-RevId: 9a3bac37e3fb09ee64b05cfda300dfe8d8672aad
This commit is contained in:
Andrew Rumble 2024-11-14 16:10:37 +00:00 committed by Copybot
parent c89002f1b8
commit 11213d85fe
7 changed files with 33 additions and 0 deletions

View file

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

View file

@ -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 = {

View file

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

View file

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

View file

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

View file

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

View file

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