summaryrefslogtreecommitdiff
path: root/deps/llhttp
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-11-03 17:48:47 +0100
committerAnna Henningsen <anna@addaleax.net>2018-11-10 21:54:48 +0100
commitd3f02d0da3d574b91a15d3ace10e76014b7574fc (patch)
tree7982db3b18811ca0cd7d4da5a66c43c6ecf1953e /deps/llhttp
parentfb6c6692a8d2e7e4d86a742216151a6e5e15739b (diff)
downloadandroid-node-v8-d3f02d0da3d574b91a15d3ace10e76014b7574fc.tar.gz
android-node-v8-d3f02d0da3d574b91a15d3ace10e76014b7574fc.tar.bz2
android-node-v8-d3f02d0da3d574b91a15d3ace10e76014b7574fc.zip
stream: make `.destroy()` interact better with write queue
Make sure that it is safe to call the callback for `_write()` even in the presence of `.destroy()` calls during that write. In particular, letting the write queue continue processing would previously have thrown an exception, because processing writes after calling `.destroy()` is forbidden. One test had to be modified to account for the fact that callbacks for writes will now always be called, even when the stream is destroyed during the process. PR-URL: https://github.com/nodejs/node/pull/24062 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/llhttp')
0 files changed, 0 insertions, 0 deletions