Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorayanamist <contact@ayanamist.com>2014-01-03 15:37:16 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-01-05 19:44:45 +0400
commitb922b5e90d2c14dd332b95827c2533e083df7e55 (patch)
treeb3bb6326380159798bf9af5a2f4cc790ad91b8e7 /deps/npm/html/doc/api/npm-prune.html
parentaa56d9d35405a56b8478c0a83106ffa4ada903db (diff)
stream: writes may return false but forget to emit drain
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.
Diffstat (limited to 'deps/npm/html/doc/api/npm-prune.html')
0 files changed, 0 insertions, 0 deletions