You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src fails due to a timeout (e.g. because dst is to slow to read)
the outer caller retries
Since we don't know whether to continue to write to dst until after we call dst.write() every retry will write more data that exceeds the HWM and eventually crashes the process in worst case.
For correctness IMO the above should look like this:
Activity
ronag commentedon Sep 25, 2020
@nodejs/streams
mcollina commentedon Sep 25, 2020
I would call it
writableNeedDrain. Overall, +1.ronag commentedon Sep 25, 2020
Just a list of things that needs to be updated in this context:
pipelineReadable.pipeOutgoingMessage.writableNeedDrainWritable.writableNeedDrainDuplex.writableNeedDrainfix: Client.stream writableNeedDrain
fix: Client.stream writableNeedDrain
fix: Client.stream writableNeedDrain
stream: writableNeedDrain
fix: Client.stream writableNeedDrain
fix: Client.stream writableNeedDrain
fix: Client.stream writableNeedDrain
stream: writableNeedDrain
stream: writableNeedDrain
stream: writableNeedDrain