0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
ayanamist b922b5e90d 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.
2014-01-05 19:44:45 +04:00
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures debugger: breakpoints in scripts not loaded yet 2013-05-02 08:52:58 +02:00
gc
internet test: move two tests from simple/ to internet/ 2013-07-20 12:36:33 +02:00
message process: separate nextTick domain logic 2013-02-27 16:37:10 -08:00
pummel test: use proper findjsobjects output format 2013-10-10 15:45:25 -07:00
simple stream: writes may return false but forget to emit drain 2014-01-05 19:44:45 +04:00
common.js test: optionally set common.PORT via env variable 2013-03-02 19:09:39 +01:00