stream: Increase highWaterMark on large reads
authorisaacs <i@izs.me>
Wed, 6 Mar 2013 06:09:27 +0000 (22:09 -0800)
committerisaacs <i@izs.me>
Wed, 6 Mar 2013 19:44:30 +0000 (11:44 -0800)
commit8c44869f1dc2cdc7337d5a2a4f64e10494b0fb2f
tree0ed0b4acee7aaf964c6c6f2146bd365bed991451
parente0cec37d50b2fea9b6d8c79d52241afbf3d83c4e
stream: Increase highWaterMark on large reads

If the consumer of a Readable is asking for N bytes, and N > hwm,
then clearly we have set the hwm to low, and ought to increase it.

Fix #4931
lib/_stream_readable.js
test/simple/test-stream-readable-flow-recursion.js [new file with mode: 0644]