Skip to content
Commits on Sep 22, 2012
  1. @piscisaureus
Commits on Sep 21, 2012
  1. @AvianFlu @bnoordhuis

    unix: map EDQUOT to UV_ENOSPC

    AvianFlu committed with bnoordhuis Sep 19, 2012
Commits on Sep 15, 2012
  1. @bnoordhuis

    linux: improve /proc/cpuinfo parser

    Make uv_cpu_info() understand the ARM and MIPS versions of /proc/cpuinfo,
    it only knew how to deal with the x86 version
    This commit also fixes a buglet where uv_cpu_info() reported the maximum CPU
    frequency instead of the actual CPU frequency. That is, before this commit
    `out/Debug/run-tests platform_output | grep speed | sort | uniq -c` on my
    system always reported:
          8   speed: 3400
    Now it reports (for example):
          2   speed: 3400
          6   speed: 1600
    In other words, two CPUs are running at full speed while the others have been
    scaled back because they're mostly idle.
    This is a back-port of commit 54bfb66 from the master branch.
    Fixes #526.
    bnoordhuis committed Aug 14, 2012
Commits on Sep 14, 2012
Commits on Sep 11, 2012
  1. @bnoordhuis

    unix: put child process stdio fds in blocking mode

    Remove the O_NONBLOCK flag from file descriptors 0-2, most applications don't
    expect EAGAIN errors when dealing with stdio.
    bnoordhuis committed Sep 12, 2012
  2. @bnoordhuis
Commits on Sep 10, 2012
  1. @bnoordhuis

    unix: fix EMFILE busy loop

    Don't spin in epoll_wait() / kevent() / port_getn() / etc. when we can't
    accept() a new connection due to having reached the file descriptor limit.
    Pass the error to the connection_cb and let the libuv user deal with it.
    bnoordhuis committed Sep 10, 2012
  2. @bnoordhuis
Commits on Sep 3, 2012
  1. @bnoordhuis

    sunos: don't set TCP_KEEPALIVE

    The system headers advertise the socket option but the actual syscall fails
    Fixes nodejs/node-v0.x-archive#3937.
    bnoordhuis committed Sep 4, 2012
Commits on Aug 30, 2012
  1. @piscisaureus
Commits on Aug 25, 2012
  1. @bnoordhuis

    unix: fix memory leak in udp.c

    Some memory was leaked when the uv_udp_t handle was closed when there were
    in-flight send requests with a heap allocated buffer list.
    That doesn't happen much in practice. In the common case (writing < 5 buffers),
    the buffer list is stored inside the uv_udp_send_t structure, not allocated on
    the heap.
    bnoordhuis committed Aug 25, 2012
Commits on Aug 22, 2012
  1. @bnoordhuis

    unix: map errno ESPIPE

    bnoordhuis committed Aug 23, 2012
Commits on Aug 20, 2012
  1. @piscisaureus

    windows: fix uninitialized memory access in uv_update_time()

    uv_update_time does not overwrite the high 32 bits of uv_loop_t.time.
    It merely increments it by one when the low 32 bits have wrapped. That
    means that `time` needs to be initialized to zero before
    uv_update_time() is called for the first time.
    piscisaureus committed Aug 21, 2012
  2. @bnoordhuis

    unix, windows: fix memory corruption in fs-poll.c

    uv_fs_poll_t has an embedded uv_timer_t handle that got closed at a time when
    the memory of the encapsulating handle might already have been deallocated.
    Solve that by moving the poller's state into a structure that is allocated on
    the heap and can be freed independently.
    bnoordhuis committed Aug 20, 2012
  3. @bnoordhuis
  4. @bnoordhuis

    unix: fix const correctness compiler warning

    This is a back-port of commit f97c80f from the master branch.
    bnoordhuis committed Aug 7, 2012
Commits on Aug 18, 2012
  1. @timholy @piscisaureus

    unix: fix integer overflow in uv_hrtime

    Conversion to nanoseconds was overflowing with 32-bit builds.
    timholy committed with piscisaureus Aug 17, 2012
Commits on Aug 16, 2012
  1. @bnoordhuis

    sunos: fix uv_cpu_info() on x86_64

    kstat_data_lookup("clock_Mhz") returns a KSTAT_DATA_INT32 on i386 but a
    KSTAT_DATA_INT64 on x86_64.
    bnoordhuis committed Aug 16, 2012
Commits on Aug 15, 2012
  1. @bnoordhuis
Commits on Aug 13, 2012
  1. @bnoordhuis

    build: rework -fvisibility=hidden detection

    Make the gcc_version macro conform with what node.js and v8 use. Important
    because node.js's common.gypi is going to export it soon.
    bnoordhuis committed Aug 13, 2012
Commits on Aug 8, 2012
  1. @piscisaureus
  2. @piscisaureus
Commits on Aug 3, 2012
  1. @piscisaureus

    windows: map WSANO_DATA to UV_ENOENT

    This improves uv_getaddrinfo error reporting.
    piscisaureus committed Aug 3, 2012
Commits on Jul 31, 2012
  1. @piscisaureus
  2. @piscisaureus

    windows: only allow opening directories for reading

    This is closer to the Posix model.
    piscisaureus committed Aug 1, 2012
  3. @piscisaureus

    windows: initialize uv_fs_t.path to NULL

    This shouldn't be necessary, but node v0.8 relies on it.
    piscisaureus committed Jul 31, 2012
  4. @piscisaureus
  5. @piscisaureus
  6. @piscisaureus

    windows: improve uv_fs_unlink

    * It's now more efficient, the file is not opened twice.
    * It no longer allows deletion of non-symlink directory reparse points.
    piscisaureus committed Jul 31, 2012
  7. @piscisaureus

    windows: fix regression in uv_fs_link

    Old and new path were accidentally reversed.
    piscisaureus committed Jul 31, 2012
  8. @bnoordhuis

    sunos: workaround OS bug to prevent from spinning

    This is a back-port of commit cfb06db from the master branch.
    Fixes nodejs/node-v0.x-archive#3768.
    bnoordhuis committed Jul 31, 2012
Commits on Jul 30, 2012
  1. @bnoordhuis @piscisaureus
  2. @piscisaureus

    windows: fix memory leaks in fs

    Also clean up the code in various ways.
    piscisaureus committed Jul 30, 2012
  3. @piscisaureus

    Avoid compiler warning

    piscisaureus committed Jul 30, 2012
Commits on Jul 28, 2012
  1. @bnoordhuis

    linux: fix 'two watchers, one path' segfault

    Problem: registering two uv_fs_event_t watchers for the same path, then closing
    them, caused a segmentation fault. While active, the watchers didn't work right
    either, only one would receive events.
    Cause: each watcher has a wd (watch descriptor) that's used as its key in a
    binary tree. When you call inotify_watch_add() twice with the same path, the
    second call doesn't return a new wd - it returns the existing one. That in turn
    resulted in the first handle getting ousted from the binary tree, leaving
    dangling pointers.
    This commit addresses that by storing the watchers in a queue and storing the
    queue in the binary tree instead of storing the watchers directly in the tree.
    Fixes nodejs/node-v0.x-archive#3789.
    bnoordhuis committed Jul 28, 2012
Something went wrong with that request. Please try again.