1. Feb 20, 2013
  2. Feb 19, 2013
  3. Feb 16, 2013
    • Gil Pedersen's avatar
      stream: Pipe data in chunks matching read data · 0a9930a2
      Gil Pedersen authored
      This creates better flow for large values of lowWaterMark.
      0a9930a2
    • isaacs's avatar
      fs: Change default WriteStream config, increase perf · 8476aefc
      isaacs authored
      This increases fs.WriteStream throughput dramatically by removing the
      "higher default water marks" for fs.WriteStream.
      
      Also includes a benchmark.  Current performance is significantly higher
      than v0.8 for strings at all tested levels except size=1.  Buffer
      performance is still lackluster.
      
      Further improvement in the stream.Writable base class is required, but
      this is a start.
      8476aefc
    • isaacs's avatar
      test: Bump up debugger timeouts · 9299168f
      isaacs authored
      200ms is still short enough for occasional spurious failures.
      9299168f
    • Trevor Norris's avatar
      process: allow ticker to cross communicate better · ec420006
      Trevor Norris authored
      Using external memory values allows for quick communication between js
      and cc land, so we can check if the js land callback needs to be run.
      (this is where I meant that manually tracking nextTickQueue.length would
      be helpful)
      
      Also did some minor cleanup of removing the old Tick and
      StartTickSpinner functions, and a few unneeded comments.
      
      Conflicts:
      
      	src/node.cc
      ec420006
    • Trevor Norris's avatar
      process: streamlining tick callback logic · 86c0745a
      Trevor Norris authored
      * Callbacks from spinner now calls its own function, separate from the
        tickCallback logic
      * MakeCallback will call a domain specific function if a domain is
        detected
      * _tickCallback assumes no domains, until nextTick receives a callback
        with a domain. After that _tickCallback is overridden with the domain
        specific implementation.
      * _needTickCallback runs in startup() instead of nextTick (isaacs)
      * Fix bug in _fatalException where exit would be called twice (isaacs)
      * Process.domain has a default value of null
      * Manually track nextTickQueue.length (will be useful later)
      * Update tests to reflect internal api changes
      86c0745a
    • isaacs's avatar
      Revert "Move MakeCallback to JS" · 95ac576b
      isaacs authored
      This reverts commit 0109a9f9.
      
      Also included:  Port all the changes to process._makeCallback into the
      C++ version.  Immediate nextTick, etc.
      
      This yields a slight boost in several benchmarks.  V8 is optimizing and
      deoptimizing process._makeCallback repeatedly.
      95ac576b
    • Shigeki Ohtsu's avatar
      401cef79
    • Shigeki Ohtsu's avatar
      timer: move setImmediate from timer to uv_check · cd372510
      Shigeki Ohtsu authored
      uv_check is the robust place to invoke setImmediate callbacks after
      process.nextTick and before timers(setTimeout/setInterval)
      cd372510
    • isaacs's avatar
      blog: Release v0.8.20 · 3f38069a
      isaacs authored
      3f38069a
    • isaacs's avatar
      Now working on v0.8.21 · 01bff7e7
      isaacs authored
      01bff7e7
    • isaacs's avatar
      Merge branch 'v0.8.20-release' into v0.8 · 48521f12
      isaacs authored
      48521f12
    • isaacs's avatar
      2013.02.15, Version 0.8.20 (Stable) · e10c7557
      isaacs authored
      * npm: Upgrade to v1.2.11
      
      * http: Do not let Agent hand out destroyed sockets (isaacs)
      
      * http: Raise hangup error on destroyed socket write (isaacs)
      
      * http: protect against response splitting attacks (Bert Belder)
      e10c7557
    • isaacs's avatar
      npm: Upgrade to v1.2.11 · 73be4608
      isaacs authored
      73be4608
  4. Feb 15, 2013
    • isaacs's avatar
      http: Do not let Agent hand out destroyed sockets · 987338fe
      isaacs authored
      Fix #4373
      987338fe
    • isaacs's avatar
      http: Raise hangup error on destroyed socket write · c9dcf571
      isaacs authored
      Prior to v0.10, Node ignored ECONNRESET errors in many situations.
      There *are* valid cases in which ECONNRESET should be ignored as a
      normal part of the TCP dance, but in many others, it's a very relevant
      signal that must be heeded with care.
      
      Exacerbating this problem, if the OutgoingMessage does not have a
      req.connection._handle, it assumes that it is in the process of
      connecting, and thus buffers writes up in an array.
      
      The problem happens when you reuse a socket between two requests, and it
      is destroyed abruptly in between them.  The writes will be buffered,
      because the socket has no handle, but it's not ever going to GET a
      handle, because it's not connecting, it's destroyed.
      
      The proper fix is to treat ECONNRESET correctly.  However, this is a
      behavior/semantics change, and cannot land in a stable branch.
      
      Fix #4775
      c9dcf571
    • Ben Noordhuis's avatar
      doc: clarify child_process.exec() stdio option · 3e2be6f3
      Ben Noordhuis authored
      It only works for stdin, not stdout/stderr, for obvious reasons.
      3e2be6f3
  5. Feb 14, 2013
  6. Feb 13, 2013
    • Dan Kohn's avatar
      doc: add prompt to fix repl_test.js example · 2e1ebbf2
      Dan Kohn authored
      Running repl.start without the prompt set produces this error:
      
      repl.js:95
          throw new Error('An options Object, or a prompt String are required');
                ^
      Error: An options Object, or a prompt String are required
          at new REPLServer (repl.js:95:11)
          at Object.exports.start (repl.js:321:14)
          at Object.<anonymous> (/Users/dan/Dropbox/Documents/dev/nextgen/repl_test.js:5:6)
          at Module._compile (module.js:449:26)
          at Object.Module._extensions..js (module.js:467:10)
          at Module.load (module.js:356:32)
          at Function.Module._load (module.js:312:12)
          at Module.runMain (module.js:492:10)
          at process.startup.processNextTick.process._tickCallback (node.js:244:9)
      2e1ebbf2
    • Ben Noordhuis's avatar
      stream_wrap, udp_wrap: add read-only fd property · 7bdd05bd
      Ben Noordhuis authored
      Expose the file descriptor as a read-only property on the internal
      handle objects. Intended for debugging purposes, not part of the API
      proper. The property is always null on Windows.
      
      Fixes #4754.
      7bdd05bd
    • Ben Noordhuis's avatar
      2d069c52
    • Ben Noordhuis's avatar
      udp_wrap: don't use namespace imports in header · b1b7b4e4
      Ben Noordhuis authored
      It's not really harmful but it's inconsistent with the other header
      files.
      b1b7b4e4
    • Ben Noordhuis's avatar
      buffer: accept negative indices in Buffer#slice() · 3f7e88a8
      Ben Noordhuis authored
      A negative start or end parameter now indexes from the end of the
      buffer. More in line with String#slice() and ArrayBuffer#slice().
      3f7e88a8
    • isaacs's avatar
      net: Respect the 'readable' flag on sockets · 27893239
      isaacs authored
      Previously, we were only destroying sockets on end if their readable
      side had already been ended.  This causes a problem for non-readable
      streams, since we don't expect to ever see an 'end' event from those.
      
      Treat the lack of a 'readable' flag the same as if it was an ended
      readable stream.
      
      Fix #4751
      27893239
    • isaacs's avatar
      blog: Forgot slug on peer-dependencies article · 82ad5fbe
      isaacs authored
      82ad5fbe
    • isaacs's avatar
      blog: Peer Dependencies article · 6dcadb9f
      isaacs authored
      Thanks, @domenic
      6dcadb9f