Revert "Update defaultHighWaterMark to 64KiB (Node 22's default) (#25522)" (#25789)

This reverts commit 19d731abf683066654027de3a4f9ac0b8916f22c.

GitOrigin-RevId: eb7c45ab45e02054601b607a4bfeb432424a1837
This commit is contained in:
Antoine Clausse
2025-05-21 13:49:15 +02:00
committed by Copybot
parent 8e6d1d5f07
commit b667cef262
10 changed files with 0 additions and 37 deletions

View File

@@ -1,9 +1,6 @@
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false https.globalAgent.keepAlive = false

View File

@@ -1,9 +1,5 @@
const Path = require('node:path') const Path = require('node:path')
const os = require('node:os') const os = require('node:os')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
const isPreEmptible = process.env.PREEMPTIBLE === 'TRUE' const isPreEmptible = process.env.PREEMPTIBLE === 'TRUE'
const CLSI_SERVER_ID = os.hostname().replace('-ctr', '') const CLSI_SERVER_ID = os.hostname().replace('-ctr', '')

View File

@@ -1,9 +1,6 @@
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.maxSockets = 300 http.globalAgent.maxSockets = 300
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false https.globalAgent.keepAlive = false

View File

@@ -1,9 +1,5 @@
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.maxSockets = 300 http.globalAgent.maxSockets = 300
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false

View File

@@ -1,9 +1,6 @@
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false https.globalAgent.keepAlive = false

View File

@@ -1,8 +1,4 @@
const Path = require('node:path') const Path = require('node:path')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
// environment variables renamed for consistency // environment variables renamed for consistency
// use AWS_ACCESS_KEY_ID-style going forward // use AWS_ACCESS_KEY_ID-style going forward

View File

@@ -1,8 +1,3 @@
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
module.exports = { module.exports = {
internal: { internal: {
notifications: { notifications: {

View File

@@ -1,9 +1,6 @@
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false https.globalAgent.keepAlive = false

View File

@@ -1,10 +1,6 @@
/* eslint-disable camelcase */ /* eslint-disable camelcase */
const http = require('node:http') const http = require('node:http')
const https = require('node:https') const https = require('node:https')
const stream = require('node:stream')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
http.globalAgent.keepAlive = false http.globalAgent.keepAlive = false
https.globalAgent.keepAlive = false https.globalAgent.keepAlive = false

View File

@@ -1,10 +1,6 @@
const Path = require('node:path') const Path = require('node:path')
const stream = require('node:stream')
const { merge } = require('@overleaf/settings/merge') const { merge } = require('@overleaf/settings/merge')
// TODO(24011): remove this after node 22 update
stream.setDefaultHighWaterMark(false, 64 * 1024)
let defaultFeatures, siteUrl let defaultFeatures, siteUrl
// Make time interval config easier. // Make time interval config easier.