1. Jan 17, 2013
    • Dean McNamee's avatar
      TypedArrays: Improve dataview perf without endian param · 9fe3734f
      Dean McNamee authored
      V8 seems to be particularly slow converting an undefined value to false
      in BooleanValue.
      
      Revert this when we upgrade to V8 3.17, or whenever the fix discussed
      in http://code.google.com/p/v8/issues/detail?id=2487 lands in V8.
      9fe3734f
    • James Campos's avatar
      assert that require() has a truthy path · c93c99c7
      James Campos authored
      c93c99c7
    • isaacs's avatar
      stream: Properly handle large reads from push-streams · 14e8f806
      isaacs authored
      Problem 1: If stream.push() triggers a 'readable' event, and the user
      calls `read(n)` with some n > the highWaterMark, then the push() will
      return false (indicating that they should not push any more), but no
      future 'readable' event is coming (because we're above the
      highWaterMark).
      
      Solution: return true from push() when needReadable is set.
      
      Problem 2: A read(n) for n != 0, after the stream had encountered an
      EOF, would not trigger the 'end' event if the EOF was pushed in
      synchronously by the _read() function.
      
      Solution: Check for ended in stream.read() and schedule an end event if
      the length now equals 0.
      
      Fix #4585
      14e8f806
    • Trevor Norris's avatar
      buffer: improve read/write speed with assert · 7393740c
      Trevor Norris authored
      Improved assert check order of execution and added additional checks on
      parameters to ensure no bad values make it through (e.g. negative offset
      values).
      7393740c
    • Trevor Norris's avatar
      buffer: floating point read/write improvements · 22b84e62
      Trevor Norris authored
      Improvements:
      * floating point operations are approx 4x's faster
      * Now write quiet NaN's
      * all read/write on floating point now done in C, so no more need for
        lib/buffer_ieee754.js
      * float values have more accurate min/max value checks
      * add additional benchmarks for buffers read/write
      * created benchmark/_bench_timer.js which is a simple library that
        can be included into any benchmark and provides an intelligent tracker
        for sync and async tests
      * add benchmarks for DataView set methods
      * add checks and tests to make sure offset is greater than 0
      22b84e62
    • Alexandr Emelin's avatar
      http: fix duplicate var initialization · eef0ccbc
      Alexandr Emelin authored
      IncomingMessage function contained duplicate initialization
      of this._pendings. Line with one of those expressions has been
      removed.
      eef0ccbc
  2. Jan 16, 2013
  3. Jan 15, 2013
    • Fedor Indutny's avatar
      tls: follow RFC6125 more stricly · b4b750b6
      Fedor Indutny authored
      * Allow wildcards only in left-most part of hostname identifier.
      * Do not match CN if altnames are present
      b4b750b6
    • isaacs's avatar
      streams2: Do not allow hwm < lwm · 20a3c5d0
      isaacs authored
      There was previously an assert() in there, but this part of the code is
      so high-volume that the added cost made a measurable dent in http_simple.
      
      Just checking inline is fine, though, and prevents a lot of potential
      hazards.
      20a3c5d0
    • isaacs's avatar
      stream: Do not call endReadable on a non-empty stream · 27fafd46
      isaacs authored
      Say that a stream's current read queue has 101 bytes in it, and the
      underlying resource has ended (ie, reached EOF).
      
      If you do something like this:
      
          stream.read(100); // leave a byte behind
          stream.read(0); // read(0) for some reason
      
      then the read(0) will get 0 from the howMuchToRead function.  Since the
      stream was ended, this was incorrectly treating the 0 as a "there is no
      more in the buffer", and emitting 'end' before that last byte was read.
      
      Why have the read(0) in the first place?  We do this in some cases to
      trigger the last few bytes of a net socket (such as a child process's
      stdio pipes).  This was causing issues when piping a `git archive` job
      to a file: the resulting tarball was incomplete, because it occasionally
      was not getting the last chunk.
      27fafd46
    • Bert Belder's avatar
      e501ce4b
    • Fedor Indutny's avatar
      tls: allow wildcards in common name · 4dd70bb1
      Fedor Indutny authored
      see #4592
      4dd70bb1
  4. Jan 14, 2013
  5. Jan 13, 2013
  6. Jan 12, 2013
    • Scott Blomquist's avatar
      8e311d28
    • Ben Noordhuis's avatar
      v8: remove optimization switches · 80181139
      Ben Noordhuis authored
      Remove compiler switches from $(TOPLEVEL)/deps/v8/build/common.gypi,
      we set them globally in $(TOPLEVEL)/common.gypi.
      
      Commit 7b4d95a9 introduced the switches again, resulting in V8 getting
      built without any optimizations.
      
      This commit is essentially a rehash of commit 4b8629db.
      80181139
    • Fedor Indutny's avatar
      deps: update v8 to 3.15.11.7 · d22bd9e3
      Fedor Indutny authored
      d22bd9e3
    • isaacs's avatar
      Now working on 0.9.7 · 9a4a39fc
      isaacs authored
      9a4a39fc
    • isaacs's avatar
      Merge branch 'v0.9.6-release' · f228e3cc
      isaacs authored
      f228e3cc
    • isaacs's avatar
      2013.01.11, Version 0.9.6 (Unstable) · 9313fdc7
      isaacs authored
      * V8: update to 3.15.11.5
      
      * node: remove ev-emul.h (Ben Noordhuis)
      
      * path: make basename and extname ignore trailing slashes (Bert Belder)
      
      * typed arrays: fix sunos signed/unsigned char issue (Ben Noordhuis)
      
      * child_process: Fix {stdio:'inherit'} regression (Ben Noordhuis)
      
      * child_process: Fix pipe() from child stdio streams  (Maciej Małecki)
      
      * child_process: make fork() execPath configurable (Bradley Meck)
      
      * stream: Add readable.push(chunk) method (isaacs)
      
      * dtrace: x64 ustack helper (Fedor Indutny)
      
      * repl: fix floating point number parsing (Nirk Niggler)
      
      * repl: allow overriding builtins (Ben Noordhuis)
      
      * net: add localAddress and localPort to Socket (James Hight)
      
      * fs: make pool size coincide with ReadStream bufferSize (Shigeki Ohtsu)
      
      * typed arrays: implement load and store swizzling (Dean McNamee)
      
      * windows: fix perfctr crash on XP and 2003 (Scott Blomquist)
      
      * dgram: fix double implicit bind error (Ben Noordhuis)
      9313fdc7
    • isaacs's avatar
      Merge remote-tracking branch 'ry/v0.8' into master · 97db62b4
      isaacs authored
      Conflicts:
      	AUTHORS
      	ChangeLog
      	Makefile
      	src/node_version.h
      97db62b4
    • Bert Belder's avatar
      path: make basename and extname ignore trailing slashes · 6a91eab0
      Bert Belder authored
      Fixes #4536
      6a91eab0
    • Ben Noordhuis's avatar
      typed arrays: fix sunos signed/unsigned char issue · b509ae67
      Ben Noordhuis authored
      The int8_t and uint8_t typedefs on sunos/smartos depend on a number of
      compiler directives. Avoid ambiguity and specify signed and unsigned
      char explicitly.
      
      Fixes the following build error:
      
        ../src/stream_wrap.cc: In static member function 'static void*
        node::WriteWrap::operator new(size_t)':
        ../src/stream_wrap.cc:70:49: warning: no return statement in function
        returning non-void [-Wreturn-type]
        In file included from ../src/v8_typed_array.cc:26:0:
        ../src/v8_typed_array_bswap.h: In function 'T
        v8_typed_array::SwapBytes(T) [with T = signed char]':
        ../src/v8_typed_array_bswap.h:150:23:   instantiated from 'T
        v8_typed_array::LoadAndSwapBytes(void*) [with T = signed char]'
        ../src/v8_typed_array.cc:694:7:   instantiated from 'static
        v8::Handle<v8::Value> {anonymous}::DataView::getGeneric(const
        v8::Arguments&) [with T = signed char]'
        ../src/v8_typed_array.cc:738:40:   instantiated from here
        ../src/v8_typed_array_bswap.h:125:16: error: size of array is
        negative
      b509ae67
    • isaacs's avatar
      test: child process { stdio:'inherit' } · 3383d77c
      isaacs authored
      3383d77c
    • Fedor Indutny's avatar
      Revert "typed arrays: fix build on sunos" · d93346d0
      Fedor Indutny authored
      This reverts commit 35a137cf.
      d93346d0
  7. Jan 11, 2013