Files
node/lib/internal
David Halls 538d8ce106 stream: don't push null from closed promise #42694
closed promise is subscribed to first so will be
resolved first, before any read promise.

This causes data after EOF error to be thrown.

Remove the push null from the closed promise handler.
The push null gets done from the read handler
when it detects done.

PR-URL: https://github.com/nodejs/node/pull/45026
Fixes: https://github.com/nodejs/node/issues/42694
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-10-22 17:27:37 +00:00
..
2022-09-05 12:25:09 +03:00
2022-10-06 17:03:47 +00:00
…
2022-08-16 21:34:56 +00:00
2022-09-05 12:25:09 +03:00
…
…
…
2022-10-19 04:26:16 +02:00
2022-09-07 09:33:10 +00:00
2022-08-05 14:25:06 +00:00
…
2022-10-19 04:26:16 +02:00
…
…

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.