1. Feb 06, 2014
    • Trevor Norris's avatar
      node: make AsyncListenerInst field more explicit · c9abb596
      Trevor Norris authored
      
      
      "flags" could mean one of many things, and multiple flag types could be
      checked. So make the field more explicit on what type of flags are being
      stored.
      
      Signed-off-by: default avatarTimothy J Fontaine <tjfontaine@gmail.com>
      c9abb596
    • Timothy J Fontaine's avatar
      doc: document the tracing api · 1d2fab37
      Timothy J Fontaine authored
      1d2fab37
    • Ben Noordhuis's avatar
      src: add v8.getHeapStatistics() function · d23ac0ea
      Ben Noordhuis authored
      Add a one-to-one binding to v8::GetHeapStatistics().  Returns info on
      the current state of the JS heap, like total size and amount used.
      d23ac0ea
    • Ben Noordhuis's avatar
      src: add tracing.v8.on('gc') statistics hooks · 010222d3
      Ben Noordhuis authored
      Add a new 'tracing' module with a v8 property that lets the user
      register listeners for gc events.  The listeners are invoked after
      every garbage collection cycle with 'before' and 'after' statistics.
      Useful for monitoring tools that want to keep track of memory usage.
      010222d3
    • Ben Noordhuis's avatar
      src: fix MakeCallback() handle leak · 4dc6f4ad
      Ben Noordhuis authored
      Create a new HandleScope before looking up the object context with
      v8::Object::CreationContext(), else we leak the Local<Context> into
      the current HandleScope.
      
      That's relatively harmless unless the HandleScope is long-lived and
      MakeCallback() is called a lot.  In a scenario like that, we may end
      up leaking a lot of memory.
      
      What is unfortunate about this change is that we're trying hard to
      eradicate the node_isolate global.  Longer term, we will probably have
      to change the MakeCallback() prototype to one that requires an explicit
      v8::Isolate* argument.
      4dc6f4ad
    • Ben Noordhuis's avatar
      src: update MakeCallback() function prototype · 1f2f3fa8
      Ben Noordhuis authored
      Make it possible to invoke MakeCallback() on a v8::Value but only for
      the variant that takes a v8::Function as the thing to call.
      
      The const char* and v8::String variants still require a v8::Object
      because the function to call is looked up as a property on the receiver,
      but that only works when the receiver is an object, not a primitive.
      1f2f3fa8
    • Fedor Indutny's avatar
      tls: more session configuration options, methods · 528a3ce3
      Fedor Indutny authored
      Introduce `ticketKeys` server option, `session` client option,
      `getSession()` and `getTLSTicket()` methods.
      
      fix #7032
      528a3ce3
  2. Feb 05, 2014
    • Fedor Indutny's avatar
      contextify: handle infinite recursion errors · 5ce45803
      Fedor Indutny authored
      Try to be consistent with v0.10 and emit "Maximum call stack size
      reached", even if it happens when allocating context or doing other
      stuff.
      
      fix #7045
      5ce45803
    • Alexis Campailla's avatar
      test: fix test-tcp-wrap-listen · bae545da
      Alexis Campailla authored
      If the call to writeBuffer completes asynchronously, we need to have
      an oncomplete callback on the request object no matter what. The
      writeQueueSize seems irrelvant to that regard.
      
      Note that on Windows writeBuffer always completes asynchronously.
      
      See related commit 9836a4ee
      bae545da
  3. Feb 04, 2014
  4. Feb 01, 2014
  5. Jan 31, 2014
    • Alexis Campailla's avatar
      test: delete invalid http test · 49c2372e
      Alexis Campailla authored
      The test is no longer valid for the original scenario.
      
      It now fails intermittently because of two other issues:
      1. Since the client is only processing one readable event, the
         client request is not enough to keep the process alive and the
         process can exit before the desired events have been raised.
      2. Reading just 1 byte is not enough to guarantee that the parser
         will eventually consume all the data and raise the desired
         parse error. I tried postponing the server.close() to address
         the issue at [1], but then the test just hangs sometimes.
      49c2372e
  6. Jan 30, 2014
  7. Jan 29, 2014
    • Timothy J Fontaine's avatar
      Now working on 0.11.12 · e63268e4
      Timothy J Fontaine authored
      e63268e4
    • Timothy J Fontaine's avatar
      Merge branch 'v0.11.11-release' · 245cf3f7
      Timothy J Fontaine authored
      245cf3f7
    • Timothy J Fontaine's avatar
      2014.01.29, Version 0.11.11 (Unstable) · b46e7742
      Timothy J Fontaine authored
      * v8: Upgrade to 3.22.24.19
      
      * http_parser: Upgrade to 2.2.1
      
      * openssl: Upgrade to 1.0.1f
      
      * uv: Upgrade to 0.11.18
      
      * async-listener: revamp of subsystem (Trevor Norris)
      
      * node: do not ever close stdio (Fedor Indutny)
      
      * http: use writev on chunked encoding (Trevor Norris)
      
      * async_wrap/timers: remove Add/RemoveAsyncListener (Trevor Norris)
      
      * child_process: better error reporting for exec (Fedor Indutny)
      
      * crypto: add newline to cert and key if not present (Fedor Indutny)
      
      * crypto: clear error in GetPeerCertificate (Fedor Indutny)
      
      * crypto: honor default ciphers in client mode (Jacob Hoffman-Andrews)
      
      * crypto: introduce .setEngine(engine, [flags]) (Fedor Indutny)
      
      * crypto: support custom pbkdf2 digest methods (Ben Noordhuis)
      
      * domain: fix off-by-one in Domain.exit() (Ryan Graham)
      
      * http: concatenate duplicate headers by default (Alex Kocharin)
      
      * http: do not emit EOF non-readable socket (Fedor Indutny)
      
      * node: fix argument parsing with -p arg (Alexis Cam...
      b46e7742
    • Timothy J Fontaine's avatar
      v8: Upgrade to 3.22.24.19 · 95b8a75d
      Timothy J Fontaine authored
      95b8a75d
    • Fedor Indutny's avatar
      node: do not ever close stdio · fc26fd6b
      Fedor Indutny authored
      Even if stdio streams are opened as file streams, we should not ever try
      to close them. This could be accomplished by passing `autoClose: false`
      in options on their creation.
      fc26fd6b
    • Fedor Indutny's avatar
      deps: update http_parser to 2.2.1 · 597eb6a5
      Fedor Indutny authored
      Main changes:
      
        * Fixed content-length and chunk-size overflow test
      597eb6a5
    • Thom Seddon's avatar
      lib: fix unnecessary coercion in lib/net.js · 657cd2c4
      Thom Seddon authored
      Original patch by @skypjack in #6627
      657cd2c4
    • Thom Seddon's avatar
      lib: Remove unused var+operations in util.inspect · 8eaa1ac4
      Thom Seddon authored
      This was originally introduced in 6034701f to prevent the closing
      brace being pushed onto the next line if an object is longer than
      the max width, however the functionality was removed in d164989e but
      the supplementary variables (and operations) were left behind
      8eaa1ac4
    • Timothy J Fontaine's avatar
      src: only define ssize_t on windows if undefined · ab54e32b
      Timothy J Fontaine authored
      This matches how libuv handles the definition of ssize_t, by
      typedef'ing intptr_t to ssize_t.
      
      However, in the future we will use portable types from stddef.h
      ab54e32b
    • Fedor Indutny's avatar
      stream_wrap: use `uv_try_write` where possible · 9836a4ee
      Fedor Indutny authored
      Use `uv_try_write` for string and buffer writes, thus avoiding to do
      allocations and copying in some of the cases.
      9836a4ee
  8. Jan 28, 2014
  9. Jan 27, 2014
  10. Jan 26, 2014