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: 31314b697874
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 008ab12b7fac
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 20, 2013

  1. tls: Prevent hang in readStart

    This is not a great fix, and it's a bug that's very tricky to reproduce.
    
    Occasionally, while downloading a file, especially on Linux for some
    reason, the pause/resume timing will be just right such that the
    CryptoStream is in a 'reading' state, but actually has no data, so it
    ought to pull more in.  Because there's no reads happening, it just sits
    there, and the process will exit
    
    This is, fundamentally, a factor of how the HTTP implementation sits
    atop CryptoStreams and TCP Socket objects, which is utterly horrible,
    and needs to be rewritten.  However, in the meantime, npm downloads are
    prematurely exiting, causing hard-to-debug "cb() never called!" errors.
    isaacs committed Mar 20, 2013
    Copy the full SHA
    008ab12 View commit details
    Browse the repository at this point in the history