summaryrefslogtreecommitdiff
path: root/lib/string_decoder.js
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-03-07 14:16:34 +0100
committerAnna Henningsen <anna@addaleax.net>2018-03-15 12:53:22 +0100
commit1ac14244763a7f87d51a517f0817eca82cbc86b6 (patch)
treecf0e01b521bec86d175c7f11d3ad679e7deca412 /lib/string_decoder.js
parente136903700445f1d5f7555f22f69be189a14f682 (diff)
downloadandroid-node-v8-1ac14244763a7f87d51a517f0817eca82cbc86b6.tar.gz
android-node-v8-1ac14244763a7f87d51a517f0817eca82cbc86b6.tar.bz2
android-node-v8-1ac14244763a7f87d51a517f0817eca82cbc86b6.zip
http: align parser with StreamBase interface changes
The `StreamBase` interface changed, so that `OnStreamRead()` and `OnStreamAlloc()` are not guaranteed to be emitted in the same tick any more. This means that, while it isn’t causing any trouble right now, we should not assume that it’s safe to return a static buffer in the HTTP parser’s `OnStreamAlloc()` method. PR-URL: https://github.com/nodejs/node/pull/18936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/string_decoder.js')
0 files changed, 0 insertions, 0 deletions