Files
node/lib
Anna Henningsen d3f02d0da3 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-11-10 21:54:48 +01:00
..
2018-11-06 10:58:42 -05:00
2018-11-06 10:58:47 -05:00
2018-08-24 18:37:35 -07:00
2018-07-16 15:55:15 -07:00
2018-10-23 21:05:47 -07:00
2018-10-17 19:56:43 +02:00
2018-10-23 17:59:17 +02:00