mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Update defaultHighWaterMark to 64KiB (Node 22's default) (#25522)
* Set defaultHighWaterMark to 16KiB This is already the default in Node 20 * Set defaultHighWaterMark to 64KiB Per https://github.com/overleaf/internal/pull/25522#issuecomment-2872035192 GitOrigin-RevId: 19d731abf683066654027de3a4f9ac0b8916f22c
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
const Path = require('node:path')
|
||||
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 CLSI_SERVER_ID = os.hostname().replace('-ctr', '')
|
||||
|
||||
Reference in New Issue
Block a user