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: c1b1f3120356
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: a454063ea17f
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 25, 2014

  1. http: do not emit EOF non-readable socket

    Socket may become not `readable`, but http should not rely on this
    property and should not think that it means that no data will ever
    arrive from it. In fact, it may arrive in a next tick and, since
    `this.push(null)` was already called, it will result in a error like
    this:
    
        Error: stream.push() after EOF
            at readableAddChunk (_stream_readable.js:143:15)
            at IncomingMessage.Readable.push (_stream_readable.js:123:10)
            at HTTPParser.parserOnBody (_http_common.js:132:22)
            at Socket.socketOnData (_http_client.js:277:20)
            at Socket.EventEmitter.emit (events.js:101:17)
            at Socket.Readable.read (_stream_readable.js:367:10)
            at Socket.socketCloseListener (_http_client.js:196:10)
            at Socket.EventEmitter.emit (events.js:123:20)
            at TCP.close (net.js:479:12)
    
    fix #6784
    indutny authored and tjfontaine committed Jan 25, 2014
    Copy the full SHA
    a454063 View commit details
    Browse the repository at this point in the history