Files
node/lib
Anna Henningsen dd60d3561a 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/29124
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 17:36:36 +01:00
..
2019-04-15 23:49:30 -04:00
2018-08-17 15:22:59 -04:00
2017-12-20 01:58:39 +00:00
2018-10-17 00:07:24 +01:00
2018-12-25 10:08:13 -05:00
2018-08-16 11:38:48 +10:00
2018-09-06 09:40:51 -07:00
2016-10-04 12:17:32 -04:00
2017-03-10 11:23:48 -08:00
2018-08-17 15:16:53 -04:00
2018-09-06 09:40:48 -07:00
2018-04-10 16:30:50 +01:00