1. Jan 19, 2013
  2. Jan 18, 2013
  3. Jan 17, 2013
    • Ben Noordhuis's avatar
      Revert "tls: allow wildcards in common name" · 30e23704
      Ben Noordhuis authored
      This reverts commit 45024e7b.
      
      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
      30e23704
    • Ben Noordhuis's avatar
      test: add cluster 'bind twice' test · 08ac9fe0
      Ben Noordhuis authored
      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 cacd3ae0, accidentally reverted in a2851b62.
      08ac9fe0
    • Ben Noordhuis's avatar
      buffer: reject negative SlowBuffer offsets · 498200b8
      Ben Noordhuis authored
      Reject negative offsets in SlowBuffer::MakeFastBuffer(), it allows
      the creation of buffers that point to arbitrary addresses.
      
      Reported by Trevor Norris.
      498200b8
  4. Jan 15, 2013
  5. Jan 12, 2013
  6. Jan 11, 2013
    • Nathan Rajlich's avatar
      make binary: allow custom config flags · 4fa3fd1c
      Nathan Rajlich authored
      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"
      4fa3fd1c
  7. Jan 10, 2013
  8. Jan 09, 2013
  9. Jan 08, 2013
    • Ben Noordhuis's avatar
      dgram: don't assert on send('string') · ad6769fc
      Ben Noordhuis authored
      Raise a TypeError when the argument to send() or sendto() is anything
      but a Buffer.
      
      Fixes the following assertion:
      
        $ node -e 'require("dgram").createSocket("udp4").send("BAM")'
        node: ../../src/udp_wrap.cc:220: static v8::Handle<v8::Value>
        node::UDPWrap::DoSend(const v8::Arguments&, int): Assertion
        `Buffer::HasInstance(args[0])' failed.
        Aborted (core dumped)
      
      Fixes #4496.
      ad6769fc
  10. Jan 05, 2013
  11. Jan 01, 2013
  12. Dec 31, 2012
  13. Dec 30, 2012
  14. Dec 27, 2012
    • Maciej Małecki's avatar
      build: allow to specify custom tags · c2e71dd5
      Maciej Małecki authored
      When building custom `node` versions (e.g., floating features/fixes from
      different versions) it's often useful to specify a custom tag which
      easily identifies build when invoking `node -v`.
      
      Introduce a way to specify this tag in `node_version.h` file or by
      running `./configure --tag="<tag>"`. Insert it right after the patch
      version (and before `-pre`, if build is not a release).
      c2e71dd5
    • isaacs's avatar
      lint · 54740c8b
      isaacs authored
      54740c8b
  15. Dec 22, 2012
  16. Dec 21, 2012
  17. Dec 20, 2012
    • Ben Noordhuis's avatar
      http: pack response body buffer in first tcp packet · 5a19c07c
      Ben Noordhuis authored
      Apply the same optimization to res.end(buf) that is applied to res.end(str).
      
      Speeds up `node benchmark/http_simple_auto -k -c 1 -n 25000 buffer/1`
      (non-chunked response body) by about 750x. That's not a typo.
      
      Chunked responses:
      
        $ cat tmp/http-chunked-client.js
        // Run `node benchmark/http_simple` in another terminal.
        var http = require('http'), url = require('url');
        var options = url.parse('http://127.0.0.1:8000/buffer/1/1');
        options.agent = new http.Agent({ maxSockets: 1 });
        for (var i = 0; i < 25000; ++i) http.get(options);
      
      Before:
      
        $ time out/Release/node tmp/http-chunked-client.js
        real    16m40.411s
        user    0m9.184s
        sys     0m0.604s
      
      After:
      
        $ time out/Release/node tmp/http-chunked-client.js
        real    0m5.386s
        user    0m2.768s
        sys     0m0.728s
      
      That's still a 185x speed-up.
      
      Fixes #4415.
      5a19c07c
    • Ben Noordhuis's avatar
      bench: use res.end() for chunked encoding · ba407ce4
      Ben Noordhuis authored
      Use res.end() for the final chunk so we can benchmark the 'hot path' shortcut
      in lib/http.js that packs the headers and the body into a single packet.
      ba407ce4