Files
node/lib
Anna Henningsen 6ce4ef3387 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>
2018-12-26 11:18:54 -05:00
..
2018-12-03 13:33:01 -05:00
2018-09-03 17:56:53 +02:00
2018-12-03 13:33:01 -05:00
2018-12-03 13:33:01 -05:00
2018-09-06 08:52:21 +02:00
2018-12-25 09:48:37 -05:00
2018-07-17 14:08:55 +02:00
2017-03-10 11:23:48 -08:00
2018-12-26 11:18:45 -05:00
2018-12-26 11:18:44 -05:00