diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-03-07 14:16:34 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-15 12:53:22 +0100 |
commit | 1ac14244763a7f87d51a517f0817eca82cbc86b6 (patch) | |
tree | cf0e01b521bec86d175c7f11d3ad679e7deca412 /lib/string_decoder.js | |
parent | e136903700445f1d5f7555f22f69be189a14f682 (diff) | |
download | android-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