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: b5f9779c2f83
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: fab4b06e2194
Choose a head ref
  • 10 commits
  • 87 files changed
  • 5 contributors

Commits on Feb 26, 2014

  1. tls: stop NodeBIO::Gets from reading off end of buffer

    NodeBIO::Gets was reading off the end of a buffer if it
    didn't find a "\n" before the EOF.  This behavior
    was causing X509 certificates passed to `https.Agent`
    via the "ca" option to be silently discarded. It also
    was causing improper parsing of certs and keys
    passed to https.Agent, but those problems were worked
    around in cdde9a3.
    
    Backed out workaround in `lib/crypto.js` from ccde9a3,
    which now isn't needed.  But keep the test introduced
    in that commit, which tests properly for this
    bug.
    
    This bug was first introduced in a58f93f
    
    Gist containing test code, bisection log, and notes:
       https://gist.github.com/maxtaco/9211605
    maxtaco authored and indutny committed Feb 26, 2014
    Copy the full SHA
    a22a2d8 View commit details
    Browse the repository at this point in the history
  2. test: remove invalid part of stream2-stderr-sync

    One test case in test-stream2-stderr-sync.js was creating a TTY
    object using an undocumented constructor and passing in fd 2.
    However, this is running in a child process and fd 2 is actually
    a pipe, not a TTY.
    
    The constructor fails on Windows and causes the handle type to be
    left uninitialized, which later causes an assert to fail.
    
    On Unix, the constructor fails to retrieve the windows size but unlike
    on Windows, it just leaves the size fields undefined and continues
    with initializing the stream type, yielding a semi-usable object.
    
    I could make the Windows version match Unix behavior, but it
    seems to me that the test is relying on an implementation detail of
    an undocumented API, and the Unix behavior is not necessarily more
    correct than the Windows one. Thus it makes more sense to remove this
    test.
    orangemocha authored and tjfontaine committed Feb 26, 2014
    Copy the full SHA
    c1bb886 View commit details
    Browse the repository at this point in the history
  3. src: make stdout/sterr pipes blocking

    Expose `setBlocking` on Pipe's and if a pipe is being created for stdio
    on windows then make the pipes blocking.
    
    This fixes test-stream2-stderr-sync.js on Windows.
    
    Fixes #3584
    orangemocha authored and tjfontaine committed Feb 26, 2014
    Copy the full SHA
    20176a9 View commit details
    Browse the repository at this point in the history
  4. test: fix async-listener-run-error-once

    Rely on defined order of operations by closing the server and
    destorying the client socket, instead of when setImmediate fires
    trevnorris authored and tjfontaine committed Feb 26, 2014
    Copy the full SHA
    846f304 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    d307beb View commit details
    Browse the repository at this point in the history
  6. http, https: don't depend on globalAgent

    For the `request()` and `get()` functions. I could never
    really understand why these two functions go through agent
    first... Especially since the user could be passing `agent: false`
    or a different Agent instance completely, in which `globalAgent`
    will be completely bypassed.
    
    Moved the relevant logic from `Agent#request()` into the
    `ClientRequest` constructor.
    
    Incidentally, this commit fixes #7012 (which was the original
    intent of this commit).
    TooTallNate committed Feb 26, 2014
    Copy the full SHA
    d6bbb19 View commit details
    Browse the repository at this point in the history
  7. test: update "http-*" tests to only use public API

    Don't invoke the `agent.requst()` or `agent.get()` functions
    directly. Instead, use the public API and pass the agent
    instance in as the `agent` option.
    TooTallNate committed Feb 26, 2014
    Copy the full SHA
    0a5d8ca View commit details
    Browse the repository at this point in the history
  8. http: remove the circular dependency

    Between `ClientRequest` and `Agent`. The circular require was doing
    weird things at load time, like making the `globalAgent` property
    be `undefined` from within the context of the "_http_client"
    module.
    
    Removing the circular dependency completely fixes this.
    
    This commit effectively removes the undocumented `Agent#request()`
    and `Agent#get()` functions.
    TooTallNate committed Feb 26, 2014
    Copy the full SHA
    f3189ac View commit details
    Browse the repository at this point in the history
  9. uv: Upgrade to v0.11.20

    tjfontaine committed Feb 26, 2014
    Copy the full SHA
    c978462 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    fab4b06 View commit details
    Browse the repository at this point in the history