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
I noticed that there's an unhandled overflow error in stream.Readable in work earlier today; when large values are supplied as highWaterMark the value used by the created object wraps around to a negative number. This didn't cause us massive problems, but it is a little difficult to debug (given that most people won't read the contents of _readableState)
I'm definitely +1 for input validation. That large value is really a bug, because you are essentially disabling backpressure, and you are exposing yourself to out-of-memory errors.
Activity
cjihrig commentedon Apr 20, 2017
You may be running into these lines.
tniessen commentedon Apr 20, 2017
@cjihrig Was about to write the same thing, appears to be the problem.
tniessen commentedon Apr 22, 2017
Thoughts on this?
2^31is a fairly high value forhighWaterMark. Is there any real-world use for bigger values?cjihrig commentedon Apr 22, 2017
I'd personally be in favor of some input validation, but I'd like to know what @nodejs/streams thinks.
mcollina commentedon Apr 22, 2017
I'm definitely +1 for input validation. That large value is really a bug, because you are essentially disabling backpressure, and you are exposing yourself to out-of-memory errors.
mcollina commentedon May 16, 2017
Fixed in #12593.