1. Apr 23, 2013
    • isaacs's avatar
      http: Don't try to destroy nonexistent sockets · 025f9133
      isaacs authored
      Fixes #3740
      
      In the case of pipelined requests, you can have a situation where
      the socket gets destroyed via one req/res object, but then trying
      to destroy *another* req/res on the same socket will cause it to
      call undefined.destroy(), since it was already removed from that
      message.
      
      Add a guard to OutgoingMessage.destroy and IncomingMessage.destroy
      to prevent this error.
      025f9133
  2. Apr 21, 2013
    • Ben Noordhuis's avatar
      cluster: clean up lib/cluster.js · 41b75ca9
      Ben Noordhuis authored
      Clean up and DRY the cluster source code. Fix a few bugs while we're
      here:
      
      * Short-lived handles in long-lived worker processes were never
        reclaimed, resulting in resource leaks.
      
      * Handles in the master process are now closed when the last worker
        that holds a reference to them quits. Previously, they were only
        closed at cluster shutdown.
      
      * The cluster object no longer exposes functions/properties that are
        only valid in the 'other' process, e.g. cluster.fork() is no longer
        exported in worker processes.
      
      So much goodness and still manages to reduce the line count from 590
      to 320.
      41b75ca9
  3. Apr 20, 2013
  4. Apr 19, 2013
    • isaacs's avatar
      2013.04.19, Version 0.11.1 (Unstable) · 4babd2b4
      isaacs authored
      * V8: upgrade to 3.18.0
      
      * uv: Upgrade to v0.11.1
      
      * http: split into multiple separate modules (Timothy J Fontaine)
      
      * http: escape unsafe characters in request path (Ben Noordhuis)
      
      * url: Escape all unwise characters (isaacs)
      
      * build: depend on v8 postmortem-metadata if enabled (Paddy Byers)
      
      * etw: update prototypes to match dtrace provider (Timothy J Fontaine)
      
      * buffer: change output of Buffer.prototype.toJSON() (David Braun)
      
      * dtrace: actually use the _handle.fd value (Timothy J Fontaine)
      
      * dtrace: pass more arguments to probes (Dave Pacheco)
      
      * build: allow building with dtrace on osx (Dave Pacheco)
      
      * zlib: allow passing options to convenience methods (Kyle Robinson Young)
      4babd2b4
    • isaacs's avatar
      test: fix dgram-bind-default-address on osx · 42b8682a
      isaacs authored
      Allow the IPv4-mapped-as-IPv6 style address.
      42b8682a
    • Trevor Norris's avatar
      src: replace Holder() with This() · 0a4ebc3d
      Trevor Norris authored
      Switch to always use args.This() to retrieve object instance.
      0a4ebc3d
    • Ben Noordhuis's avatar
      build: fix arm build after v8 upgrade · 223607c9
      Ben Noordhuis authored
      V8 was upgraded to 3.18 in commit 9f682265. The knobs that control the
      ARM build have changed in a number of ways. This commit patches the
      configure script to reflect that. Should fix the Raspberry Pi build.
      
      Fixes #5329.
      223607c9
    • isaacs's avatar
      Merge remote-tracking branch 'ry/v0.10' · 0bccb341
      isaacs authored
      0bccb341
    • Ryan Doenges's avatar
      assert: put info in err.message, not err.name · 6101eb18
      Ryan Doenges authored
      4716dc66 made assert.equal() and related functions work better by
      generating a better toString() from the expected, actual, and operator
      values passed to fail(). Unfortunately, this was accomplished by putting
      the generated message into the error's `name` property. When you passed
      in a custom error message, the error would put the custom error into
      `name` *and* `message`, resulting in helpful string representations like
      "AssertionError: Oh no: Oh no".
      
      This commit resolves that issue by storing the generated message in the
      `message` property while leaving the error's name alone and adding
      a regression test so that this doesn't pop back up later.
      
      Closes #5292.
      6101eb18
    • Ben Noordhuis's avatar
      a835a2fc
  5. Apr 18, 2013
  6. Apr 17, 2013
  7. Apr 16, 2013
  8. Apr 13, 2013
    • Ben Noordhuis's avatar
      test: add extra checks · 31d0d5af
      Ben Noordhuis authored
      31d0d5af
    • Ben Noordhuis's avatar
      http: escape unsafe characters in request path · 38149bb0
      Ben Noordhuis authored
      Make http.request() and friends escape unsafe characters in the request
      path. That is, a request for '/foo bar' is now escaped as '/foo%20bar'.
      
      Before this commit, the path was used as-is in the request status line,
      creating an invalid HTTP request ("GET /foo bar HTTP/1.1").
      
      Fixes #4381.
      38149bb0