Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 8, 2015
  1. @jasnell

    test: fixing a few nits in the test

    jasnell authored
    typo and unnecessary options init
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: #14383
  2. @jasnell

    tls: pass in isolate with define string constant + style nits

    jasnell authored
    Per the commit feedback, fix up style nits and pass in the
    isolate with the NODE_DEFINE_STRING_CONSTANT macro.
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: #14383
  3. @jasnell

    tls: make --enable-legacy-cipher-list less verbose

    jasnell authored
    Based on commit feedback, make the PrintHelp for
    --enable-legacy-cipher-list less verbose.
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: #14383
  4. @jasnell

    tls: command-line switch and envar cipher-list override

    jasnell authored
    Add command line switches and environment variables to override
    the default cipher suite in tls.js
    
    `--cipher-list` and `NODE_CIPHER_LIST` can be used to completely
    override the default cipher list with a given value.
    
    `--enable-legacy-cipher-list` and `NODE_LEGACY_CIPHER_LIST` can
    be used to reset the default cipher list back to a known legacy
    value shipped in prior Node.js releases
    
    A new `getLegacyCiphers` method on the tis module allows
    programmatic access to the old cipher list defaults.
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: #14383
  5. @jasnell

    tls: more secure defaults

    jasnell authored
    Port of io.js commit: iojs/io.js@77f3586
    
    Original commit message:
    
    This updates the default cipher suite to an more secure list, which
    prefers strong ciphers with Forward Secrecy. Additionally, it enables
    `honorCipherOrder` by default.
    
    Noteable effect of this change is that the insecure RC4 ciphers are
    disabled and that Chrome negotiates a more secure ECDHE cipher.
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    PR-URL: #14383
Commits on Apr 1, 2015
  1. @misterdjules

    Merge remote-tracking branch 'upstream/v0.12'

    misterdjules authored
    Conflicts:
    	src/node_version.h
Commits on Mar 31, 2015
  1. @misterdjules

    Now working on 0.12.3

    misterdjules authored
  2. @misterdjules
  3. @misterdjules

    2015.03.31, Version 0.12.2 (Stable)

    misterdjules authored
    * uv: Upgrade to 1.4.2
    
    * npm: Upgrade to 2.7.4
    
    * V8: do not add extra newline in log file (Julien Gilli)
    
    * V8: Fix --max_old_space_size=4096 integer overflow (Andrei Sedoi)
    
    * asyncwrap: fix constructor condition for early ret (Trevor Norris)
    
    * buffer: align chunks on 8-byte boundary (Fedor Indutny)
    
    * buffer: fix pool offset adjustment (Trevor Norris)
    
    * build: fix use of strict aliasing (Trevor Norris)
    
    * console: allow Object.prototype fields as labels (Colin Ihrig)
    
    * fs: make F_OK/R_OK/W_OK/X_OK not writable (Jackson Tian)
    
    * fs: properly handle fd passed to truncate() (Bruno Jouhier)
    
    * http: fix assert on data/end after socket error (Fedor Indutny)
    
    * lib: fix max size check in Buffer constructor (Ben Noordhuis)
    
    * lib: fix stdio/ipc sync i/o regression (Ben Noordhuis)
    
    * module: replace NativeModule.require (Herbert Vojčík)
    
    * net: allow port 0 in connect() (cjihrig)
    
    * net: unref timer in parent sockets (Fedor Indutny)
    
    * path: refactor for performance and consistency (Nathan Woltman)
    
    * smalloc: extend user API (Trevor Norris)
    
    * src: fix for SIGINT crash on FreeBSD (Fedor Indutny)
    
    * src: fix builtin modules failing with --use-strict (Julien Gilli)
    
    * watchdog: fix timeout for early polling return (Saúl Ibarra Corretgé)
  4. @gireeshpunathil @mhdawson

    test: make cluster tests more time tolerant

    gireeshpunathil authored mhdawson committed
    simple tests test-cluster-master-error.js, test-cluster-master-kill.js
    fails in AIX with assertion failure indicating that the workers were
    alive even after the master terminated. A 200ms leeway is provided for
    the workers to actually terminate, but the isAlive check returns
    true in both the cases.
    
    In AIX, the workers were actually terminating, but they took more time
    - as much as 800ms (normal) to 1000ms (in rare cases).
    
    Based on a C test we ran, it is found that the exit routines in AIX
    is a bit more longer than that in Linux. There are a number of cleanup
    activities performed in exit() system call, and depending on when the
    signal handlers are shutdown in that sequence, the process will be
    deemed as dead or alive, from another process's perspective.
    
    process.kill(pid) is used in the test case to check the liveliness of
    the worker, and when the kill() call is issued, even if the target
    process is in it's exit sequences, if the signal handlers are not shut
    down, it will respond to external signals, causing those calls to pass.
    
    This fix extends the additional timeout for all platforms
    
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    PR-URL: #9431
Commits on Mar 28, 2015
  1. @indutny @misterdjules

    src: backport fix for SIGINT crash on FreeBSD

    indutny authored misterdjules committed
    This is a backport of b64983d77cc3ed2e4b585f3bfc8ed23802389a52.
    
    Original commit message:
    
      src: reset signal handler to SIG_DFL on FreeBSD
    
      FreeBSD has a nasty bug with SA_RESETHAND reseting the SA_SIGINFO,
      that is in turn set for a libthr wrapper. This leads to a crash.
      Work around the issue by manually setting SIG_DFL in the signal
      handler.
    
      Fix: #9326
      PR-URL: iojs/io.js#1218
      Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
      Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    
    Fixes #9326.
    
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    PR-URL: #14184
  2. @indutny @misterdjules

    http: fix assert on data/end after socket error

    indutny authored misterdjules committed
    This change is a backport of 1a3ca8223e08d82051655d7d7e2ea31b439f1bf1
    from io.js.
    
    Original commit message:
    
      Read all pending data out of the socket on `error` event and ensure that
      no `data`/`end` handlers will be invoked on `socket.destroy()`.
      Otherwise following assertion happens:
    
          AssertionError: null == true
              at TLSSocket.socketOnData (_http_client.js:308:3)
              at TLSSocket.emit (events.js:107:17)
              at TLSSocket.Readable.read (_stream_readable.js:373:10)
              at TLSSocket.socketCloseListener (_http_client.js:229:10)
              at TLSSocket.emit (events.js:129:20)
              at TCP.close (net.js:476:12)
    
      Fix: #9348
      PR-URL: iojs/io.js#1103
      Reviewed-By: Rod Vagg <rod@vagg.org>
      Reviewed-By: Nicu Micleușanu <micnic90@gmail.com>
    
    Fixes #9348.
    
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    PR-URL: #14087
Commits on Mar 27, 2015
  1. @othiym23 @misterdjules

    deps: upgrade npm to 2.7.4

    othiym23 authored misterdjules committed
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    PR-URL: #14180
  2. @gireeshpunathil @mhdawson

    test: address timing issues in simple http tests

    gireeshpunathil authored mhdawson committed
    simple tests test-http-request-end.js, test-http-default-encoding.js
    hangs in AIX. The root cause for both the failures is related to the
    timing with which packets are sent between the client and server.
    On the client side, one factor that affects the timing is Nagle's
    algorithm. With Nagle enabled there may be a delay between two packets
    as the stack may wait until either:
      a. An acknowledgement for the first packet is received, or
      b. 200 ms elapses.
    before sending the second packet.
    
    Similarly at the server side 2 sequential packages can be delivered to
    the application either together or separatly.
    
    On AIX we see that they are delivered separately to the server, while on
    Linux delivered together. If we change the timing, for example disabling
    Nagle on AIX we see the 2 packets delivered together and the tests pass.
    
    In the test case simple/test-http-request-end.js, the client request
    handler of the server receives and stores the data in a data callback,
    closes the server in a request end callback, and writes to the client
    and ends the response, in-line with the request receipt. An HTTP parser
    module parses the incoming message, and invokes callback routines which
    are registered for HTTP events (such as header, body, end etc.)
    
    Because the termination sequence arrive in a separate packet, there is a
    delay in parsing that message and identify that the client request ended
    (and thereby invoke the request end call backhandler). Due to this delay,
    the response close happens first, which in-turn destroys the server
    socket leading to the fd and watcher removal from the uv loop abandoning
    further events on this connection, and end call back never being called,
    causing the reported hang.  simple/test-http-default-encoding.js suffers
    from the same problem.
    
    Also, remove the timer logic from the test case. Test harness anyways
    contain a timer which controls the individual tests so remove such
    controls from the test case, as suggested by @tjfontaine
    
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    PR-URL: #9432
Commits on Mar 26, 2015
  1. @mhdawson

    test: Env variable to specify directory for pipes

    mhdawson authored mhdawson committed
    At the uv layer pipes are connected with uv_pipe_connect.
    The current spec for this method indicates that the maximum
    length is limited to the size of length of
    sizeof(sockaddr_un.sun_path), typically between 92 and
    108 bytes. Anything longer than that just gets truncated.
    
    The simple testsuite currently creates pipes in directories
    under the directory where node was built.  In our jenkins
    jobs this sometimes ends up being a deep enough path that
    the path for the pipes is getting truncated.  The result
    is that tests using pipes fail with errors that don't
    make it obvious what the problem is.
    
    Even if the errors were helpful, we still need a way
    to avoid the truncation.
    
    This patch adds the environment variable NODE_PIPE_DIR.
    If set the tests create pipes in this directory instead of
    the current defaults.  In addition the test harness is
    updated to remove/delete this directory before/after
    each test is run.
    
    	modified:   test/common.js
    	modified:   test/simple/test-net-pipe-connect-errors.js
    	modified:   test/testpy/__init__.py
    	modified:   test/simple/test-cluster-eaccess.js
    
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    PR-URL: #9381
Commits on Mar 25, 2015
  1. @woollybogger @misterdjules

    path: refactor for performance and consistency

    woollybogger authored misterdjules committed
    Improve performance by:
    + Not leaking the `arguments` object!
    + Getting the last character of a string by index, instead of
      with `.substr()` or `.slice()`
    
    Improve code consistency by:
    + Using `[]` instead of `.charAt()` where possible
    + Using a function declaration instead of a var declaration
    + Using `.slice()` with clearer arguments
    + Checking if `dir` is truthy in `win32.format`
      (added tests for this)
    
    Improve both by:
    + Making the reusable `trimArray()` function
    + Standardizing getting certain path statistics with
      the new `win32StatPath()` function
    
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    PR-URL: #9289
Commits on Mar 24, 2015
  1. @misterdjules

    Merge remote-tracking branch 'upstream/v0.12'

    misterdjules authored
    Conflicts:
    	src/node_version.h
  2. @misterdjules

    Merge remote-tracking branch 'upstream/v0.10' into v0.12

    misterdjules authored
    Conflicts:
    	ChangeLog
    	src/node_version.h
  3. @misterdjules

    Now working on 0.12.2

    misterdjules authored
  4. @misterdjules

    Merge branch 'v0.12.1-release' into v0.12

    misterdjules authored
    Conflicts:
    	ChangeLog
  5. @misterdjules

    2015.03.23, Version 0.12.1 (Stable)

    misterdjules authored
    * openssl: upgrade to 1.0.1m (Addressing multiple CVES)
  6. @shigeki @misterdjules

    openssl: fix keypress requirement in apps on win32

    shigeki authored misterdjules committed
    reapply b910613792dac946b295855963869933a9089044
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  7. @shigeki @misterdjules

    deps: remove unused backup file in openssl asm

    shigeki authored misterdjules committed
    deps/openssl/asm/x64-win32-masm/x86_64cpuid.asm.orig was accidentally
    committed before.
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  8. @shigeki @misterdjules

    deps: remove vpaesni-x86_64.asm in x64-win32-masm

    shigeki authored misterdjules committed
    It is no longer used.
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  9. @indutny @misterdjules

    deps: fix openssl assembly error on ia32 win32

    indutny authored misterdjules committed
    `x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
    perhaps others) are requiring .686 .
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  10. @shigeki @misterdjules

    deps: separate sha256/sha512-x86_64.pl for openssl

    shigeki authored misterdjules committed
    sha256-x86_64.pl does not exist in the origin openssl distribution. It
    was copied from sha512-x86_64.pl and both sha256/sha512 scripts were
    modified so as to generates only one asm file specified as its key
    hash length.
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  11. @shigeki @misterdjules

    deps: replace all headers in openssl

    shigeki authored misterdjules committed
    change all openssl/include/openssl/*.h to include resolved symbolic
    links and openssl/crypto/opensslconf.h to refer config/opensslconf.h
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  12. @jasnell @misterdjules

    deps: upgrade to openssl-1.0.1m

    jasnell authored misterdjules committed
    Extract the tarball into deps/openssl/openssl
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    
    Conflicts:
    	deps/openssl/openssl/apps/s_client.c
Commits on Mar 23, 2015
  1. @misterdjules

    Now working on 0.10.39

    misterdjules authored
  2. @misterdjules
  3. @saghul @mhdawson

    watchdog: fix timeout for early polling return

    saghul authored mhdawson committed
    Switch from running the loop with UV_RUN_ONCE to UV_RUN_DEFAULT, because
    it's possible that the poll returns earlier than expected and thus the
    timer is not run on a single interation.
    
    The loop is not stopped either from the timer callback or from the async
    handle's.
    
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
    PR-URL: #9410
  4. @misterdjules

    2015.03.23, Version 0.10.38 (Maintenance)

    misterdjules authored
    * openssl: upgrade to 1.0.1m (Addressing multiple CVEs)
  5. @shigeki @misterdjules

    openssl: fix keypress requirement in apps on win32

    shigeki authored misterdjules committed
    reapply b910613792dac946b295855963869933a9089044
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  6. @shigeki @misterdjules

    deps: remove unused backup file in openssl asm

    shigeki authored misterdjules committed
    deps/openssl/asm/x64-win32-masm/x86_64cpuid.asm.orig was accidentally
    committed before.
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
  7. @shigeki @misterdjules

    deps: remove vpaesni-x86_64.asm in x64-win32-masm

    shigeki authored misterdjules committed
    It is no longer used.
    
    PR: #9451
    PR-URL: #9451
    Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
Something went wrong with that request. Please try again.