Files
node/lib
Eugene 3bcd68337e http2: fix excessive CPU usage when using allowHTTP1=true
When Http2SecureServer is configured with `allowHTTP1=true`, it calls
`setupConnectionsTracking` to start monitoring for idle HTTP1
connections. `setupConnectionsTracking` expects to have
`this.connectionsCheckingInterval` property defined, but it does not
exist on `Http2SecureServer`. This `undefined` value is passed to
`setInterval`, which results in `checkConnections` being called on
every tick, creating significant additional load on the server CPU.
The fix is to define `this.connectionsCheckingInterval` on the
Http2SecureServer instance.

Refs: https://github.com/nodejs/node/pull/51569
PR-URL: https://github.com/nodejs/node/pull/52713
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2024-05-03 08:30:35 +02:00
..
…
…
…
…
2024-03-25 17:26:36 +00:00
2024-03-25 19:27:53 +00:00
2024-05-03 08:29:51 +02:00
…
2024-03-25 19:24:19 +00:00
…
…
2024-03-25 17:26:36 +00:00
…
2024-03-25 19:25:52 +00:00
2024-05-03 08:30:16 +02:00
…
2024-05-03 08:30:16 +02:00
2024-03-25 18:14:54 +00:00
…
2024-03-25 17:26:36 +00:00
…
2024-03-25 17:26:36 +00:00