Files
node/lib/internal
Anna Henningsen 2eb914ff5f http2: only call into JS when necessary for session events
For some JS events, it only makes sense to call into JS when there
are listeners for the event in question.

The overhead is noticeable if a lot of these events are emitted during
the lifetime of a session. To reduce this overhead, keep track of
whether any/how many JS listeners are present, and if there are none,
skip calls into JS altogether.

This is part of performance improvements to mitigate CVE-2019-9513.

Backport-PR-URL: https://github.com/nodejs/node/pull/29123
PR-URL: https://github.com/nodejs/node/pull/29122
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-08-15 15:18:39 +01:00
..
2019-02-28 23:37:33 +11:00
2019-06-06 13:59:16 +01:00
2019-03-20 02:36:30 -04:00
2019-02-28 23:37:31 +11:00
2019-02-28 23:37:39 +11:00
2018-05-22 14:13:28 -04:00
2019-05-16 14:57:03 -04:00
2018-09-11 20:40:40 +02:00
2018-02-16 18:09:56 +01:00
2019-02-28 23:37:33 +11:00
2018-08-15 20:23:17 +10:00
2019-04-17 00:15:13 +01:00
2019-05-16 14:56:10 -04:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.