mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
stream: do not emit end
on readable error
PR-URL: https://github.com/nodejs/node/pull/39607 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
c61870c376
commit
ef992f6de9
12 changed files with 24 additions and 14 deletions
|
@ -102,7 +102,7 @@ function runTest(test) {
|
|||
});
|
||||
}
|
||||
|
||||
req.on('end', common.mustCall());
|
||||
req.on('end', common.mustNotCall());
|
||||
req.on('close', common.mustCall(() => {
|
||||
client.destroy();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue