Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 9, 2012
  1. @bnoordhuis

    https: fix renegotation attack protection

    bnoordhuis authored
    Listen for the 'clientError' event that is emitted when a renegotation attack
    is detected and close the connection.
    Fixes test/pummel/test-https-ci-reneg-attack.js
  2. @bnoordhuis

    tls: remove dead code

    bnoordhuis authored
    Remove dead code. Forgotten in 76ddf06.
  3. @aadityabhatia @bnoordhuis

    cluster: make 'listening' handler see actual port

    aadityabhatia authored bnoordhuis committed
    Make the 'listening' event handler in the master process see the actual port
    that the worker bound to when the worker specified port 0, i.e. a random port.
  4. @rngadam @bnoordhuis

    buffer: include encoding value in exception when invalid

    rngadam authored bnoordhuis committed
    Encoding failures can be somewhat confusing, especially when they are due to
    control flow frameworks auto-filling parameters from the previous step output
    values to functions (such as toString and write) that developers don't expect
    to take an encoding parameter. By outputting the value as part of the message,
    should make it easier to track down these sort of bugs.
Commits on Oct 8, 2012
  1. @piscisaureus
  2. @bnoordhuis

    tls: don't use a timer to track renegotiations

    bnoordhuis authored
    It makes tls.createSecurePair(null, true) hang until the timer expires.
    Using a timer here is silly. Use a timestamp instead.
Commits on Oct 7, 2012
  1. @TooTallNate
Commits on Oct 4, 2012
  1. @isaacs

    Revert "http: make http.ServerResponse emit 'end'"

    isaacs authored
    This reverts commit 790d651.
    This makes Duplex streams unworkable, and would only ever be a special
    case for HTTP responses, which is not ideal.
    Intead, we're going to just bless the 'finish' event for all Writable
    streams in 0.10
Commits on Oct 3, 2012
  1. @koichik @isaacs

    streams: fix pipe is destructed by 'end' from destination

    koichik authored isaacs committed
Commits on Oct 1, 2012
  1. @serby @piscisaureus

    path: add platform specific path delimiter

    serby authored piscisaureus committed
    Closes #3728
    Closes #4071
Commits on Sep 28, 2012
  1. @isaacs

    Merge remote-tracking branch 'ry/v0.8' into v0.8-merge

    isaacs authored
  2. @indutny

    debugger: test repeating last command

    indutny authored
    * debugger: Add NODE_FORCE_READLINE environment variable, handle
     `SIGINT`'s sent to process while in this mode.
  3. @rlidwka @indutny

    Fixed a bug with last command repeating in debugger

    rlidwka authored indutny committed
  4. @langpavel @bnoordhuis

    http: add response.headersSent property

    langpavel authored bnoordhuis committed
    Boolean property getter. True if headers was sent, false otherwise.
Commits on Sep 27, 2012
  1. @thewilli @isaacs

    http: handle multiple Proxy-Authenticate values

    thewilli authored isaacs committed
    Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
    be received several times as well. Currently only one value is preserved. This
    change allows to receive multiple values concatenated by space and comma.
Commits on Sep 26, 2012
  1. @thewilli @bnoordhuis

    http: handle multiple Proxy-Authenticate values

    thewilli authored bnoordhuis committed
    Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
    be received several times as well. Currently only one value is preserved. This
    change allows to receive multiple values concatenated by space and comma.
Commits on Sep 25, 2012
  1. @isaacs

    tls: lint

    isaacs authored
    cc @indutny >_<
  2. @isaacs
  3. @indutny @isaacs

    tls: use slab allocator

    indutny authored isaacs committed
Commits on Sep 24, 2012
  1. @TooTallNate
Commits on Sep 22, 2012
  1. @TooTallNate
  2. @AndreasMadsen @bnoordhuis
  3. @bnoordhuis

    child_process: make .fork()'d child auto-exit

    bnoordhuis authored
    A child process created with .fork() needed to call `process.exit()` explicitly
    because the communication channel with the parent kept the event loop alive.
    Fix that by only ref'ing the channel when there are 'message' event listeners.
    Fixes #3799.
  4. @bnoordhuis
  5. @bnoordhuis
  6. @bnoordhuis
Commits on Sep 21, 2012
  1. @isaacs

    domain: Properly exit() on domain disposal

    isaacs authored
    This addresses #4034.  There are two problems happening:
    1. The domain is not exited automatically when calling dispose() on it.
    Then, since the domain is disposed, attempting to exit it again will do
    2. The active domain is stored on process.domain.  Since thrown errors
    call `process.emit('uncaughtException', er)`, and the process is an
    event emitter with a `.domain` member, it re-enters the domain a second
    time before calling the error handler, pushing it onto the stack again.
    Thus, if the handler calls `domain.dispose()`, then the domain is now on
    the stack twice, and cannot be exited properly.  Since the domain is
    disposed, any subsequent IO will be no-op'ed, since we've declared that
    this context is done and best forgotten.
    The solution here is twofold:
    1. In EventEmitter.emit, do not enter the domain if `this===process`.
    2. Automatically exit the domain when calling `domain.dispose()`.
Commits on Sep 18, 2012
  1. @tasogarepg @indutny

    debugger: fix --debug-brk

    tasogarepg authored indutny committed
Commits on Sep 17, 2012
  1. @isaacs

    url: Go much faster by using Url class

    isaacs authored
    V8 loves it when JavaScript pretends to be a Classic inheritance
    type of language.
    $ ./node benchmark/url.js
    benchmarking parse() ... 1.868 sec
    benchmarking format() ... 1.906 sec
    benchmarking resolve("../foo/bar?baz=boom") ... 7.800 sec
    benchmarking resolve("foo/bar") ... 7.099 sec
    benchmarking resolve("") ... 8.403 sec
    benchmarking resolve("./foo/bar?baz") ... 7.974 sec
    $ ./node benchmark/url.js
    benchmarking parse() ... 1.769 sec
    benchmarking format() ... 1.793 sec
    benchmarking resolve("../foo/bar?baz=boom") ... 4.254 sec
    benchmarking resolve("foo/bar") ... 3.932 sec
    benchmarking resolve("") ... 4.382 sec
    benchmarking resolve("./foo/bar?baz") ... 4.293 sec
  2. @bnoordhuis

    fs: fix watchFile() missing deletion events

    bnoordhuis authored
    Make sure the deletion event gets reported in the following scenario:
      1. Watch a file.
      2. The initial stat() goes okay.
      3. Something deletes the watched file.
      4. The second stat() fails with ENOENT.
    The second stat() translates into the first 'change' event but a logic error
    stopped it from getting emitted.
    Fixes #4027.
Commits on Sep 14, 2012
  1. @bnoordhuis

    tls, https: validate server certificate by default

    bnoordhuis authored
    This commit changes the default value of the rejectUnauthorized option from
    false to true.
    What that means is that tls.connect(), https.get() and https.request() will
    reject invalid server certificates from now on, including self-signed
    There is an escape hatch: if you set the NODE_TLS_REJECT_UNAUTHORIZED
    environment variable to the literal string "0", node.js reverts to its
    old behavior.
    Fixes #3949.
Commits on Sep 12, 2012
  1. @isaacs

    Merge remote-tracking branch 'ry/v0.8' into master

    isaacs authored
  2. @fredericgermain @isaacs

    http: Remove timeout handler when data arrives

    fredericgermain authored isaacs committed
Commits on Sep 10, 2012
  1. @isaacs
Commits on Sep 9, 2012
  1. @TooTallNate

    buffer: implement Buffer.prototype.toJSON()

    TooTallNate authored
    Returns an Array-representation of the Buffer.
    Closes #3905.
Something went wrong with that request. Please try again.