1. Oct 17, 2013
    • Fedor Indutny's avatar
      cpplint: disallow if one-liners · 2bc30f23
      Fedor Indutny authored
      2bc30f23
    • Fedor Indutny's avatar
      cpplint: disallow comma-first in C++ · 7063c59b
      Fedor Indutny authored
      7063c59b
    • Ben Noordhuis's avatar
      dns: set hostname property on error object · a2d1cbef
      Ben Noordhuis authored
      Make debugging and logging easier: when a DNS lookup for a hostname
      fails, set the hostname as a property on the error object.
      
      Fixes #5393.
      a2d1cbef
    • Ben Noordhuis's avatar
      dns: rename domain to hostname · ceb8740a
      Ben Noordhuis authored
      A follow-up commit will save the domain name on the request object but
      we can't call that property 'domain' because that gets intercepted by
      src/node.cc and lib/domain.js to implement the node.js feature of the
      same name.
      
      To avoid confusion, rename all variables called 'domain' to 'hostname'.
      ceb8740a
    • Ben Noordhuis's avatar
      debugger: fix SIGUSR1 bootstrap race condition · 4234bcce
      Ben Noordhuis authored
      Before this commit, the SIGUSR1 signal handler wasn't installed until
      late in the bootstrapping process and we were prone to miss signals
      sent by other processes.
      
      This commit installs an early-boot signal handler that merely records
      the fact that we received a signal.  Once the debugger infrastructure
      is in place, the signal is re-raised, kickstarting the debugger.
      
      Among other things, this means that simple/test-debugger-client is
      now _much_ less likely to fail.
      4234bcce
    • Ben Noordhuis's avatar
      debugger: make busy loops SIGUSR1-interruptible · ca363cf1
      Ben Noordhuis authored
      Commit 30e5366b ("core: Use a uv_signal for debug listener") changed
      SIGUSR1 handling from a signal handler to libuv's uv_signal_*()
      functionality to fix a race condition (and possible hang) in the
      signal handler.
      
      While a good change in itself, it made it impossible to interrupt
      long running scripts.  When a script is stuck in a busy loop, control
      never returns to the event loop, which in turn means the signal
      callback - and therefore the debugger - is never invoked.
      
      This commit changes SIGUSR1 handling back to a normal signal handler
      but one that treads _very_ carefully.
      ca363cf1
    • isaacs's avatar
      http: provide backpressure for pipeline flood · 085dd30e
      isaacs authored
      If a client sends a lot more pipelined requests than we can handle, then
      we need to provide backpressure so that the client knows to back off.
      Do this by pausing both the stream and the parser itself when the
      responses are not being read by the downstream client.
      
      Fix GH-6214
      085dd30e
    • Timothy J Fontaine's avatar
      ab037455
    • Jason Gerfen's avatar
      doc: crypto: document SPKAC additions · 99014150
      Jason Gerfen authored
      Document the SPKAC functionality that was added in commit 7bf46ba4.
      99014150
    • Jason Gerfen's avatar
      crypto: add SPKAC support · 7bf46ba4
      Jason Gerfen authored
      Implements new class 'Certificate' within crypto object for working
      with SPKAC's (signed public key & challenge) natively.
      7bf46ba4
  2. Oct 16, 2013
  3. Oct 13, 2013
    • Jason Gerfen's avatar
      crypto: add SPKAC support · 7f66e44d
      Jason Gerfen authored
      Implements new class 'Certificate' within crypto object for working
      with SPKAC's (signed public key & challenge) natively.
      7f66e44d
  4. Oct 15, 2013
  5. Oct 14, 2013
  6. Oct 12, 2013
  7. Oct 09, 2013
    • Dave Pacheco's avatar
      mdb_v8: remove useless check · 2b9e3fb1
      Dave Pacheco authored
      2b9e3fb1
    • Dave Pacheco's avatar
      dtrace, mdb_v8: support more string, frame types · 5921158c
      Dave Pacheco authored
      This change makes several improvements to the ustack helper and MDB
      support:
      
      - ustack helper and MDB: add support for two-byte strings
        (necessary to print many filenames in stacktraces in 0.10 and later).
      - ustack helper: fix position numbers, which were off by a factor of two
      - ustack helper: fix frames with undefined Scripts (e.g., "RegExp")
      - ustack helper: add stub frames
      - MDB: add support for sliced strings
      - MDB: sync up with changes from the illumos version of the module
      
      Fixes #6309
      Closes #6318
      5921158c
  8. Oct 08, 2013
  9. Oct 06, 2013
  10. Oct 04, 2013
    • Ben Noordhuis's avatar
      src: fix up after botched merge conflict · 58729f1b
      Ben Noordhuis authored
      Mea culpa, I didn't properly resolve a merge conflict in the last two
      commits.  The resulting segmentation fault only happened on Linux and
      only sometimes.
      
      Fixes #6306.
      58729f1b
  11. Oct 03, 2013
    • Ben Noordhuis's avatar
      src: add JS start/stop methods for idle notifier · f649626c
      Ben Noordhuis authored
      The previous commit changes the profiler idle notifier so that it only
      gets started when a --prof or --prof_lazy argument is specified on the
      command line.
      
      This commit adds two internal methods to the process object that allows
      one to start and stop the idle notifier programmatically.
      f649626c
    • Ben Noordhuis's avatar
      src: only start idle notifier when profiling · 9566fe82
      Ben Noordhuis authored
      The previous commit adds a notifier that tells the V8 profiler when
      node.js is idle, i.e. when it's about to start sleeping in the
      platform's equivalent of epoll_wait().
      
      This commit adds a heuristic that only starts the notifier when the
      V8 profiler is started from the command line.
      9566fe82
    • Ben Noordhuis's avatar
      src: notify V8 profiler when we're idle · 57231d52
      Ben Noordhuis authored
      Inform V8's CPU profiler when we're idle.  The profiler is
      sampling-based but not all samples are created equal; mark the wall
      clock time spent in epoll_wait() and friends so profiling tools can
      filter it out.  The samples still end up in v8.log but with state=IDLE
      rather than state=EXTERNAL.
      57231d52
    • Ben Noordhuis's avatar
      src: raise maximum file descriptor limit · 6820054d
      Ben Noordhuis authored
      Do a binary search for the maximum RLIMIT_NOFILE.  Works around the
      low, low limits on certain high, high-priced devices from Cupertino, CA.
      6820054d
  12. Oct 01, 2013
  13. Sep 27, 2013
  14. Sep 26, 2013
    • Ben Noordhuis's avatar
      src: remove ObjectWrap dependency from core · c79d5163
      Ben Noordhuis authored
      Drop the ObjectWrap dependency in favor of an internal WeakObject class.
      
      Let's us stop worrying about API and ABI compatibility when making
      changes to the way node.js deals with weakly persistent handles
      internally.
      c79d5163
  15. Sep 25, 2013