Files
node/lib
Fedor Indutny 78150f3e9c lib: fix unhandled errors in webstream adapters
WebStream's Readable controller does not tolerate `.close()` being
called after an `error`. However, when wrapping a Node's Readable stream
it is possible that the sequence of events leads to `finished()`'s
callback being invoked after such `error`.

In order to handle this, in this change we call the `finished()` handler
earlier when controller is canceled, and always handle this as an error
case.

Fix: https://github.com/nodejs/node/issues/54205
PR-URL: https://github.com/nodejs/node/pull/54206
Fixes: https://github.com/nodejs/node/issues/54205
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-08-06 18:34:35 +00:00
..
…
…
…
…
2024-08-03 17:15:03 +00:00
…
2024-01-12 16:09:48 +00:00
2024-07-08 15:55:43 +00:00
…
2024-07-15 18:58:11 +00:00
2023-11-11 16:25:08 +00:00
2024-08-06 09:40:23 +00:00
2024-02-02 15:25:34 +01:00
2024-07-26 08:09:23 +00:00
…
2024-05-30 09:07:17 -04:00
2024-06-07 15:51:44 +00:00
2024-07-07 00:56:04 +00:00
2024-07-04 16:19:36 +00:00
…
2024-05-02 12:54:46 +00:00