joyent/node — pull request #6482 by indutny (2013-11-07 21:24:40+00:00)
Title: tls: prevent recursive _read()s

`.read()` may invoke `._read()` and get to `.ondata()` call again. In this
case the `_readableState.buffer` will still contain just pushed data from
the line above. This in, the pair with the 'data' event listener, will
cause buffered data to be emitted in 'data' event.

NOTE: That this error was only visible when the slab buffer was
overflowed by a decoded http request, thus splitting it into multiple
parts and emitting each separately.

fix #6061