summaryrefslogtreecommitdiff
path: root/src/node_revert.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-08-10 01:30:35 +0200
committerMichaël Zasso <targos@protonmail.com>2019-08-15 09:50:26 +0200
commit599eee0990c98ef0e6cc32f1c9dbf2f35b63a923 (patch)
tree8e3d2f244b328be9e4abd28db8e63512612585df /src/node_revert.h
parentc44ee7a14a400c8bdc80b31848234f5f55351690 (diff)
downloadandroid-node-v8-599eee0990c98ef0e6cc32f1c9dbf2f35b63a923.tar.gz
android-node-v8-599eee0990c98ef0e6cc32f1c9dbf2f35b63a923.tar.bz2
android-node-v8-599eee0990c98ef0e6cc32f1c9dbf2f35b63a923.zip
http2: do not create ArrayBuffers when no DATA received
Lazily allocate `ArrayBuffer`s for the contents of DATA frames. Creating `ArrayBuffer`s is, sadly, not a cheap operation with V8. This is part of performance improvements to mitigate CVE-2019-9513. Together with the previous commit, these changes improve throughput in the adversarial case by about 100 %, and there is little more that we can do besides artificially limiting the rate of incoming metadata frames (i.e. after this patch, CPU usage is virtually exclusively in libnghttp2). PR-URL: https://github.com/nodejs/node/pull/29122 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_revert.h')
0 files changed, 0 insertions, 0 deletions