1. Jul 30, 2013
    • Ben Noordhuis's avatar
      crypto: simplify DH modp group name matcher · 4cc57b4a
      Ben Noordhuis authored
      * Use ARRAY_SIZE() rather than scanning until we hit a NULL entry.
      * Fix `-fsigned-char -Wnarrowing` compiler warnings. Harmless but
        numerous and annoying.
      * Static-ify the modp_group and mod_groups arrays.
      * Const-ify the modp_groups array.
      4cc57b4a
  2. Jul 31, 2013
  3. Jul 30, 2013
  4. Jul 29, 2013
    • Ben Noordhuis's avatar
      dgram: report send errors to cb, don't pass bytes · 6bd922fc
      Ben Noordhuis authored
      Passing the number of sent bytes to the callback is superfluous;
      datagram sockets operate in atomic mode: either the sendmsg() system
      call succeeds or it fails but it never does partial writes.
      
      Instead, report send errors to the callback. UDP error reporting is
      fairly haphazard on most platforms. You should not expect reliable
      delivery of anything besides EMSGSIZE and (possibly) ENETDOWN and
      ENETUNREACH.
      
      Fixes #2608.
      6bd922fc
    • Ben Noordhuis's avatar
      src: don't use NewExternal() with unaligned strings · 34b0a361
      Ben Noordhuis authored
      V8 3.20.9 enforces that external pointers are aligned on a two-byte
      boundary.
      
      We cannot portably guarantee that for the source code strings that
      tools/js2c.py generates so simply stop using String::NewExternal()
      altogether (and by extension String::ExternalAsciiStringResource).
      
      Fixes the following run-time assert:
      
        FATAL ERROR: v8::String::NewExternal() Pointer is not aligned
      34b0a361
  5. Jul 30, 2013
  6. Jul 29, 2013
  7. Jul 28, 2013
  8. Jul 27, 2013
  9. Jul 26, 2013
    • Dav Glass's avatar
      doc: Fix missing backtick in debugger doc · 7d654be6
      Dav Glass authored
      7d654be6
    • isaacs's avatar
      streams: Don't emit 'end' until read() past EOF · 993bb93e
      isaacs authored
      This prevents the following sort of thing from being confusing:
      
      ```javascript
      stream.on('data', function() { console.error('got data'); });
      stream.pause(); // stop reading
      
      // turns out no data is available
      stream.push(null);
      
      // Hand the stream to someone else, who does stuff...
      setTimeout(function() {
        // too late! 'end' is already emitted!
        stream.on('end', function() { console.error('got end'); });
      });
      ```
      
      With this change, the `end` event is not emitted until you call `read()`
      *past* the EOF null.  So, a paused stream will not swallow the `end`
      event and emit it before you `resume()` the stream.
      993bb93e
  10. Jul 25, 2013
  11. Jul 26, 2013
  12. Jul 25, 2013