Files
node/lib
Fedor Indutny f4085363c6 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-10-02 07:57:29 +02:00
..
…
…
…
2023-07-03 10:38:39 -03:00
…
2024-09-21 13:18:29 +02:00
2024-09-21 11:58:32 +02:00
2024-03-25 19:27:53 +00:00
2024-03-25 19:24:19 +00:00
2024-09-21 13:16:02 +02:00
2023-08-15 14:33:58 -03:00
2024-03-25 17:26:36 +00:00
2024-10-02 07:57:27 +02:00
2023-02-21 15:33:29 +00:00
2024-03-25 19:25:52 +00:00
2024-08-19 10:32:49 +02:00
…
2024-05-03 08:30:16 +02:00
2024-07-19 15:27:05 +02:00
2024-09-21 13:18:29 +02:00
2024-03-25 17:26:36 +00:00
2024-06-17 13:32:40 +02:00