This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Commits on Feb 6, 2013
  1. 2013.02.06, Version 0.8.19 (Stable)

    isaacs committed Feb 6, 2013
    * npm: Upgrade to v1.2.10
    
    * zlib: pass object size hint to V8 (Ben Noordhuis)
    
    * zlib: reduce memory consumption, release early (Ben Noordhuis)
    
    * buffer: slow buffer copy compatibility fix (Trevor Norris)
    
    * zlib: don't assert on malformed dictionary (Ben Noordhuis)
    
    * zlib: don't assert on missing dictionary (Ben Noordhuis)
    
    * windows: better ipv6 support (Bert Belder)
    
    * windows: add error mappings related to unsupported protocols (Bert Belder)
    
    * windows: map ERROR_DIRECTORY to UV_ENOENT (Bert Belder)
  2. npm: Upgrade to v1.2.10

    isaacs committed Feb 6, 2013
Commits on Feb 5, 2013
  1. blog: remove dangling symlink

    bnoordhuis committed Feb 5, 2013
    Fixes #4716.
  2. zlib: pass object size hint to V8

    bnoordhuis committed Oct 30, 2012
    Inform V8 that the zlib context object is tied to a large off-heap buffer.
    
    This makes the GC run more often (in theory) and improves the accuracy of
    --trace_external_memory.
  3. zlib: reduce memory consumption, release early

    bnoordhuis committed Oct 30, 2012
    In zlibBuffer(), don't wait for the garbage collector to reclaim the zlib memory
    but release it manually. Reduces memory consumption by a factor of 10 or more
    with some workloads.
    
    Test case:
    
      function f() {
        require('zlib').deflate('xxx', g);
      }
      function g() {
        setTimeout(f, 5);
      }
      f();
    
    Observe RSS memory usage with and without this commit. After 10,000 iterations,
    RSS stabilizes at ~35 MB with this commit. Without, RSS is over 300 MB and keeps
    growing.
    
    Cause: whenever the JS object heap hits the high-water mark, the V8 GC sweeps
    it clean, then tries to grow it in order to avoid more sweeps in the near
    future. Rule of thumb: the bigger the JS heap, the lazier the GC can be.
    
    A side effect of a bigger heap is that objects now live longer. This is harmless
    in general but it affects zlib context objects because those are tied to large
    buffers that live outside the JS heap, on the order of 16K per context object.
    
    Ergo, don't wait for the GC to reclaim the memory - it may take a long time.
    
    Fixes #4172.
  4. doc: don't suggest to reuse net.Socket objects

    bnoordhuis committed Feb 5, 2013
    Using Socket.prototype.connect() to reconnect an existing Socket object
    is not reliable. Users should just create a new Socket object.
    
    See #4698.
Commits on Feb 2, 2013
Commits on Jan 30, 2013
Commits on Jan 26, 2013
  1. doc: fix typo in cluster module documentation

    Rick Yakubowski committed with bnoordhuis Jan 26, 2013
    Fix a small typo in the cluster.settings documentation.
Commits on Jan 25, 2013
  1. buffer: slow buffer copy compatibility fix

    trevnorris committed with TooTallNate Jan 22, 2013
    Fix issue where SlowBuffers couldn't be passed as target to Buffer
    copy().
    
    Also included checks to see if Argument parameters are defined before
    assigning their values. This offered ~3x's performance gain.
    
    Backport of 16bbecc from master branch. Closes #4633.
Commits on Jan 24, 2013
  1. doc: fix typo in crypto Hash.digest() note

    jgable committed with TooTallNate Jan 23, 2013
    Added the word 'has' to the sentence.
    Closes #4652.
  2. blog: Post for v0.9.8

    isaacs committed Jan 24, 2013
Commits on Jan 22, 2013
  1. zlib: don't assert on malformed dictionary

    bnoordhuis committed Jan 22, 2013
    Handle Z_DATA_ERROR errors from inflateSetDictionary() gracefully.
    Fixes the following assertion:
    
      node: ../src/node_zlib.cc:167: static void node::ZCtx::Process
      (uv_work_t*): Assertion `ctx->err_ == 0 && "Failed to set
      dictionary"' failed.
      Aborted (core dumped)
    
    Fixes #4632.
  2. zlib: don't assert on missing dictionary

    bnoordhuis committed Jan 22, 2013
    Handle Z_NEED_DICT errors graciously. Fixes the following assertion:
    
      node: ../src/node_zlib.cc:161: static void node::ZCtx::Process
      (uv_work_t*): Assertion`ctx->dictionary_ != __null && "Stream
      has no dictionary"' failed.
      Aborted (core dumped)
    
    Fixes #4632.
Commits on Jan 18, 2013
  1. blog: Post for v0.8.18 release

    isaacs committed Jan 18, 2013
  2. Now working on 0.8.19

    isaacs committed Jan 18, 2013
  3. 2013.01.18, Version 0.8.18 (Stable)

    isaacs committed Jan 18, 2013
    * npm: Upgrade to v1.2.2
    
    * dns: make error message match errno (Dan Milon)
    
    * tls: follow RFC6125 more stricly (Fedor Indutny)
    
    * buffer: reject negative SlowBuffer offsets (Ben Noordhuis)
    
    * install: add simplejson fallback (Chris Dent)
    
    * http: fix "Cannot call method 'emit' of null" (Ben Noordhuis)
  4. npm: Upgrade to v1.2.2

    isaacs committed Jan 18, 2013
  5. blog: Post for v0.9.7 release

    isaacs committed Jan 18, 2013
Commits on Jan 17, 2013
  1. tls: follow RFC6125 more stricly

    indutny committed Jan 14, 2013
    * Allow wildcards only in left-most part of hostname identifier.
    * Do not match CN if altnames are present
  2. Revert "Revert "tls: allow wildcards in common name""

    indutny committed Jan 17, 2013
    This reverts commit 30e2370.
    
    Works properly with b4b750b
  3. Revert "tls: allow wildcards in common name"

    bnoordhuis committed Jan 17, 2013
    This reverts commit 45024e7.
    
    It's making test/simple/test-tls-check-server-identity.js fail:
    
      AssertionError: Test#4 failed: { host: 'b.a.com',
        cert: { subject: { CN: '*.a.com' } },
        result: false }
          at <omitted>/test/simple/test-tls-check-server-identity.js:201:10
  4. test: add cluster 'bind twice' test

    bnoordhuis committed Feb 9, 2012
    This test starts two clustered HTTP servers on the same port.
    It expects the first cluster to succeed and the second cluster
    to fail with EADDRINUSE.
    
    Reapplies commit cacd3ae, accidentally reverted in a2851b6.
  5. buffer: reject negative SlowBuffer offsets

    bnoordhuis committed Jan 17, 2013
    Reject negative offsets in SlowBuffer::MakeFastBuffer(), it allows
    the creation of buffers that point to arbitrary addresses.
    
    Reported by Trevor Norris.
Commits on Jan 15, 2013
  1. install: add simplejson fallback

    cdent committed with bnoordhuis Jan 14, 2013
    Make tools/install.py work with python 2.5
    
    2.5 is still fairly widespread and does not include a json lib as
    standard. Most python folk will have simplejson if they are in that
    boat.
    
    In general it seems a bit tricky to solve this perfectly...
Commits on Jan 14, 2013
  1. tls: allow wildcards in common name

    indutny committed Jan 14, 2013
    see #4592
  2. http: fix "Cannot call method 'emit' of null"

    bnoordhuis committed Jan 14, 2013
    Fix the following exception:
    
      http.js:974
        this._httpMessage.emit('close');
                          ^
      TypeError: Cannot call method 'emit' of null
          at Socket.onServerResponseClose (http.js:974:21)
          at Socket.EventEmitter.emit (events.js:124:20)
          at net.js:421:10
          at process._tickCallback (node.js:386:13)
          at process._makeCallback (node.js:304:15)
    
    Fixes #4586.
Commits on Jan 11, 2013
  1. blog: release v0.9.6

    isaacs committed Jan 11, 2013
  2. make binary: allow custom config flags

    TooTallNate committed Jan 11, 2013
    For example, to cross-compile from my OS X laptop for Raspberry Pi, you would
    do something like:
    
      $ make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi \
          DESTCPU=arm CONFIG_FLAGS="--dest-os=linux"
Commits on Jan 10, 2013