Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: node-v0.9.5
Commits on Dec 18, 2012
  1. Ben Noordhuis

    unix: disable relaxed accept() by default

    bnoordhuis authored
    Don't use the relaxed accept() algorithm introduced in be2a217 unless
    explicitly requested. It causes a 50+% performance drop on some node.js
    benchmarks:
    
      $ alias bench='out/Release/node benchmark/http_simple_auto.js \
        -c 10 -n 50000 bytes/1 2>&1 | grep Req'
    
      $ UV_TCP_SINGLE_ACCEPT=0 bench
      Requests per second:    12331.84 [#/sec] (mean)
    
      $ UV_TCP_SINGLE_ACCEPT=1 bench
      Requests per second:    3944.63 [#/sec] (mean)
  2. Fedor Indutny

    kqueue: ignore ENOENT error

    indutny authored
    File descriptor might be closed during callback, all events that was reported
    before the callback are not valid and trying to remove them will result
    in ENOENT. This error can be safely ignored.
Commits on Dec 15, 2012
  1. Ben Noordhuis

    unix: don't memset(0) in uv_udp_init()

    bnoordhuis authored
    It's inconsistent with other init functions. In particular, it clobbers the
    data field.
    
    Fixes #655.
Commits on Dec 14, 2012
  1. Ben Noordhuis

    Merge branch 'v0.8'

    bnoordhuis authored
  2. Andrew Shaffer Ben Noordhuis

    sunos: properly disarm PORT_LOADED fsevent watcher

    ashaffer authored bnoordhuis committed
    Fixes a segmentation fault when the watched entity is changed after the watcher
    has been closed.
  3. Ben Noordhuis
  4. Ben Noordhuis
  5. Ben Noordhuis
Commits on Dec 13, 2012
  1. Ben Noordhuis

    unix: fix event loop stall

    bnoordhuis authored
    Fix a rather obscure bug where the event loop stalls when an I/O watcher is
    stopped while an artificial event, generated with uv__io_feed(), is pending.
  2. Ben Noordhuis

    unix: rework uv_cancel() api

    bnoordhuis authored
    Bert Belder informs me the current approach where a request is immediately
    cancelled, is impossible to implement on Windows.
    
    Rework the API to always invoke the "done" callback with an UV_ECANCELED error
    code.
Commits on Dec 9, 2012
  1. Fedor Indutny Ben Noordhuis

    unix: use select() for specific fds on OS X

    indutny authored bnoordhuis committed
    kqueue(2) on osx doesn't work (emits EINVAL error) with specific fds
    (i.e. /dev/tty, /dev/null, etc). When given such descriptors - start
    select(2) watcher thread that will emit io events.
  2. Ben Noordhuis

    unix: add uv_cancel()

    bnoordhuis authored
  3. Ben Noordhuis

    unix: only set SO_REUSEADDR on tcp listen sockets

    bnoordhuis authored
    Avoid the extra syscall, it's a no-op for non-listening sockets.
    
    At least, it should be - it remains to be investigated if a FreeBSD kernel bug
    affects ephemeral port allocation inside connect(). See [1] for details.
    
    [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=174087
Commits on Dec 8, 2012
  1. Ben Noordhuis
  2. Ben Noordhuis

    build: fix `make libuv.so CFLAGS=<options>`

    bnoordhuis authored
    Running a make target that builds the shared object while overriding the CFLAGS
    variable from the command line, would fail with a relocation error:
    
       relocation R_X86_64_32 against `.text' can not be used when making a shared
       object; recompile with -fPIC
    
    Fix that by adding -fPIC unconditionally.
Commits on Dec 4, 2012
  1. Bert Belder

    windows: improve / fix uv_interface_addresses

    piscisaureus authored
    * If GetAdaptersAddresses() failed, it would return UV_OK nonetheless,
      but the `adresses` and `count` out parameters would not be set.
    
    * When adapters were enabled or added in between the two
      GetAdaptersAddresses() calls, it would fail.
    
    * In case of an out of memory situation, libuv would crash with a fatal
      error.
    
    * All interface information is now stored in a single heap-allocated
      area.
  2. Bert Belder
  3. Bert Belder

    windows: improve / fix uv_interface_addresses

    piscisaureus authored
    * If GetAdaptersAddresses() failed, it would return UV_OK nonetheless,
      but the `adresses` and `count` out parameters would not be set.
    
    * When adapters were enabled or added in between the two
      GetAdaptersAddresses() calls, it would fail.
    
    * In case of an out of memory situation, libuv would crash with a fatal
      error.
    
    * All interface information is now stored in a single heap-allocated
      area.
Commits on Dec 3, 2012
  1. Bert Belder
Commits on Nov 29, 2012
  1. Ben Noordhuis

    Merge branch 'v0.8'

    bnoordhuis authored
    Conflicts:
    	src/unix/core.c
  2. Ben Noordhuis
  3. Ben Noordhuis

    unix: remove unnecessary static var init

    bnoordhuis authored
    wq doesn't have to be initialized, init_once() takes care of that.
    
    Remove the initialization so it goes into .bss instead of .data.
  4. Shigeki Ohtsu Ben Noordhuis

    test: fix finished consumer number check

    shigeki authored bnoordhuis committed
  5. Ben Noordhuis

    unix: initialize thread pool mutex and condvar

    bnoordhuis authored
    It accidentally worked before this commit on Linux but not on OS X.
    
    Fixes #637.
  6. Ben Noordhuis

    windows: fix uv_backend_fd() return value

    bnoordhuis authored
    uv__new_artificial_error() returns a uv_err_t, not an int, and we can't use
    uv__set_artificial_error() because the uv_loop_t argument is const.
Commits on Nov 28, 2012
  1. Ben Noordhuis

    Remove *.mk and *.Makefile from .gitignore list

    bnoordhuis authored
    The *.mk and *.Makefile files generated by gyp are stored in $TOPLEVEL/out now.
    
    Fixes #636.
  2. Ben Noordhuis

    unix: change uv_backend_timeout() prototype

    bnoordhuis authored
    * change return value to signed int
    * constify loop argument
  3. Fedor Indutny Ben Noordhuis

    unix: add uv_backend_fd() and uv_backend_timeout()

    indutny authored bnoordhuis committed
    This can be used in conjuction with uv_run_once() to poll in one thread and run
    the event loop's event callbacks in another.
    
    Useful for embedding libuv's event loop in another event loop.
Commits on Nov 27, 2012
  1. Shane Holloway Bert Belder
Commits on Nov 26, 2012
  1. Ben Noordhuis

    unix: drop pthread dependency in threadpool.c

    bnoordhuis authored
    Replace the pthread code with their libuv counterparts. One step closer to a
    shared thread pool implementation.
Commits on Nov 24, 2012
  1. Shigeki Ohtsu Ben Noordhuis

    unix, windows: disallow NULL worker in thread pool

    shigeki authored bnoordhuis committed
    See #629.
Commits on Nov 22, 2012
  1. Ben Noordhuis

    darwin, freebsd: set SO_NOSIGPIPE on sockets

    bnoordhuis authored
    Suppresses delivery of SIGPIPE signals when the remote end of the socket has
    gone away.
  2. Ben Noordhuis

    unix: fix thread pool race condition

    bnoordhuis authored
    Send the wakeup signal to the main thread *before* releasing the lock. Doing it
    the other way around introduces a race condition where the watcher may already
    have been pulled off the work queue.
Commits on Nov 20, 2012
  1. Ben Noordhuis

    linux: use /proc/cpuinfo for CPU frequency

    bnoordhuis authored
    Obtain the CPU frequency from /proc/cpuinfo because there may not be any
    cpufreq info available in /sys. This also means that the reported CPU speed
    from now on is the *maximum* speed, not the *actual* speed the CPU runs at.
    
    This change only applies to x86 because ARM and MIPS don't report that
    information in /proc/cpuinfo.
    
    Fixes #588.
    
    This is a back-port of commit 775064a from the master branch.
  2. Ben Noordhuis

    build: fix dragonflybsd gyp build

    bnoordhuis authored
    Depends on a not-yet-landed gyp patch: https://codereview.chromium.org/11348152/
Something went wrong with that request. Please try again.