mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
c89002f1b8
commit
11213d85fe
7 changed files with 33 additions and 0 deletions
|
@ -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: {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue