mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b922b5e90d
If a write is above the highWaterMark, _write still manages to fully send it synchronously, _writableState.length will be adjusted down to 0 synchronously with the write returning false, but 'drain' will not be emitted until process.nextTick. If another small write which is below highWaterMark is issued before process.nextTick happens, _writableState.needDrain will be reset to false, and the drain event will never be fired. So we should check needDrain before setting it up, which prevents it from inproperly resetting to false. |
||
---|---|---|
.. | ||
addons | ||
disabled | ||
fixtures | ||
gc | ||
internet | ||
message | ||
pummel | ||
simple | ||
common.js |