Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 7393740c7b4c
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 14e8f806deca
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 16, 2013

  1. stream: Properly handle large reads from push-streams

    Problem 1: If stream.push() triggers a 'readable' event, and the user
    calls `read(n)` with some n > the highWaterMark, then the push() will
    return false (indicating that they should not push any more), but no
    future 'readable' event is coming (because we're above the
    highWaterMark).
    
    Solution: return true from push() when needReadable is set.
    
    Problem 2: A read(n) for n != 0, after the stream had encountered an
    EOF, would not trigger the 'end' event if the EOF was pushed in
    synchronously by the _read() function.
    
    Solution: Check for ended in stream.read() and schedule an end event if
    the length now equals 0.
    
    Fix #4585
    isaacs committed Jan 16, 2013
    Copy the full SHA
    14e8f80 View commit details
    Browse the repository at this point in the history