1. Jan 21, 2014
  2. Jan 20, 2014
  3. Jan 18, 2014
    • Ben Noordhuis's avatar
      src: don't mark addon_register_func as dllimport · cda41f87
      Ben Noordhuis authored
      
      
      addon_register_func and its cousin addon_context_register_func are type
      definitions, dllimport and dllexport are name mangling directives, i.e.
      they're quite unrelated concepts.  MinGW complains about mixing them
      when cross-compiling native add-ons.
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      Signed-off-by: default avatarBert Belder <bertbelder@gmail.com>
      cda41f87
    • Ben Noordhuis's avatar
      tls: make cert/pfx optional in tls.createServer() · db5abd72
      Ben Noordhuis authored
      Not all ciphers require the presence of a certificate.  Remove the
      check in lib/_tls_wrap.js.
      
      Fixes #6887.
      db5abd72
    • Ben Noordhuis's avatar
      tls: show human-readable error messages · 262a752c
      Ben Noordhuis authored
      Before this commit, verification exceptions had err.message set to the
      OpenSSL error code (e.g. 'UNABLE_TO_VERIFY_LEAF_SIGNATURE').
      
      This commit moves the error code to err.code and replaces err.message
      with a human-readable error.  Example:
      
          // before
          {
            message: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
          }
      
          // after
          {
            code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
            message: 'unable to verify the first certificate'
          }
      
      UNABLE_TO_VERIFY_LEAF_SIGNATURE is a good example of why you want this:
      the error code suggests that it's the last certificate that fails to
      validate while it's actually the first certificate in the chain.
      
      Going by the number of mailing list posts and StackOverflow questions,
      it's a source of confusion to many people.
      262a752c
  4. Jan 16, 2014
  5. Jan 14, 2014
  6. Jan 13, 2014
  7. Jan 11, 2014
  8. Jan 10, 2014
    • Ryan Graham's avatar
      domain: fix off-by-one in Domain.exit() · 5106cadf
      Ryan Graham authored
      
      
      We want to clear the found domain and the domains after it.
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      5106cadf
    • Trevor Norris's avatar
      http: use writev on chunked encoding · 2eddd741
      Trevor Norris authored
      Now will process all write() that were done on a single tick in a single
      writev().
      2eddd741
    • Jeff Barczewski's avatar
      test: check RR scheduler has necessary methods · 82c2084b
      Jeff Barczewski authored
      The RR cluster scheduler replaces the normal StreamWrap handle. Because
      of this the AsyncListener method failed to be in place when domains were
      in use.
      
      The issue was resolved in 828f1455
      
       by reverting having domains use
      AsyncListeners.
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      82c2084b
    • Timothy J Fontaine's avatar
      src: OnFatalError handler must abort() · 270c2deb
      Timothy J Fontaine authored
      We are in an unrecoverable state if v8 throws a FatalError, actually
      ask the operating system to dump core in this case.
      
      Fixes #6836
      270c2deb
    • Trevor Norris's avatar
      node: AsyncListener use separate storage mechanism · 646ac18d
      Trevor Norris authored
      Before when an AsyncListener object was created and the "create"
      callback returned a value, it was necessary to construct a new Object
      with the same callbacks but add a place for the new storage value.
      
      Now, instead, a separate storage array is kept on the context which is
      used for any return value of the "create" callback. This significantly
      reduces the number of Objects that need to be created.
      
      Also added a flags property to the context to quickly check if a
      specific callback was available either on the context or on the
      AsyncListener instance itself.
      
      Few other minor changes for readability that were difficult to separate
      into their own commit.
      
      This has not been optimized yet.
      646ac18d
    • Trevor Norris's avatar
      src: revert domain using AsyncListeners · 828f1455
      Trevor Norris authored
      This is a slightly modified revert of bc39bdd9.
      
      Getting domains to use AsyncListeners became too much of a challenge
      with many edge cases. While this is still a goal, it will have to be
      deferred for now until more test coverage can be provided.
      828f1455
  9. Jan 09, 2014
  10. Jan 08, 2014
  11. Jan 07, 2014
  12. Jan 05, 2014
    • ayanamist's avatar
      stream: writes may return false but forget to emit drain · b922b5e9
      ayanamist authored
      If a write is above the highWaterMark, _write still manages to
      fully send it synchronously, _writableState.length will be adjusted down
      to 0 synchronously with the write returning false, but 'drain' will
      not be emitted until process.nextTick.
      
      If another small write which is below highWaterMark is issued before
      process.nextTick happens, _writableState.needDrain will be reset to false,
      and the drain event will never be fired.
      
      So we should check needDrain before setting it up, which prevents it
      from inproperly resetting to false.
      b922b5e9
    • Lorenz Leutgeb's avatar
      doc: Add forward secrecy section to TLS docs · e1f4f6aa
      Lorenz Leutgeb authored
      This fixes confusion connected to comparison of ECDH
      with RSA and wrong information on forward secrecy.
      e1f4f6aa
    • Fedor Indutny's avatar
      92b64170
  13. Jan 04, 2014
    • Trevor Norris's avatar
      node: properly check uid when adding AsyncListener · a40b4636
      Trevor Norris authored
      Instead of checking the uid on the array index of the queue, instead the
      object property "uid" was checked on the queue iteself. Because this
      will always evaluate to "undefined" the same listener could be added
      multiple times to the same context.
      a40b4636