Switch branches/tags
Commits on Nov 17, 2010
  1. Bump version to 0.2.5

    ry committed Nov 16, 2010
  2. Add ref to buffer during fs.write and

    ry committed Nov 17, 2010
    There was the possibility the buffer could be GCed while the eio_req was
    pending.  Still needs test coverage for the problem.
Commits on Nov 16, 2010
  1. writeFile fixes

    isaacs committed with ry Nov 14, 2010
    writeFileSync could exhibit pathological behavior when a buffer could
    not be written to the file in a single write() call.
    Also, writeFile was not quite as optimized as it could be.
  2. Fix segfault on test-crypto

    ry committed Nov 16, 2010
    Plus random cleanups. This code needs help.
  3. Simplify REPL displayPrompt

    ry committed Nov 12, 2010
    Now that we insert \r into the stream and aren't switching back and forth
    between termios modes, not need to worry about when to display the prompt.
  4. Add writeFilter when in the readline

    ry committed Nov 12, 2010
    Switch \n with \r\n for all strings printed out.
    Necessary for writev patch.
  5. Upgrade http-parser

    ry committed Nov 16, 2010
  6. Set FD_CLOEXEC flag on stdio FDs before spawning.

    guitt committed with ry Nov 7, 2010
    With regression test.
  7. Make sure watcher.set() isn't being called when active

    ry committed Nov 16, 2010
  8. Fix argv[6] comment in node_file

    ry committed Oct 30, 2010
  9. Rewrite libeio After callback to use req->result instead of req->erro…

    ry committed Nov 16, 2010
    …rno for error checking
  10. Abstract out net.Server.prototype._rejectPending

    ry committed Nov 16, 2010
    Does the same timeout action for maxConnections as it does for EMFILE.
  11. Module-level EMFILE handling

    ry committed Nov 16, 2010
    All net servers now share the same dummy socket. The ulimit warning is
    throttled for all servers.
  12. Handle cyclic links smarter in fs.realpath

    isaacs committed with ry Oct 25, 2010
    Rather than aborting in the face of *any* repeated link in a given path,
    instead only abort if such a cycle actually makes a given path unresolvable.
    Test for this by doing a normal stat.  Still use the seenLinks object to
    cache link contents so as to cut own a little bit on readlink calls.
    Also add a pathological test that fails without the change to fs.js.
  13. make "node --eval" eval in the global scope.

    xk committed with ry Oct 23, 2010
  14. Add extra anti-DoS tech to net.Server

    ry committed Nov 16, 2010
  15. Improve idle benchmarks

    ry committed Oct 27, 2010
  16. Gracefully handle EMFILE

    ry committed Nov 16, 2010
    Implementing a tip from Marc Lehmann:
    Keep an extra FD around for every server. When you hit EMFILE, destroy that
    FD, accept a connection, close it; in this way you can clear the connection
    queue and let people know that you're overload.
    No more timeout needed.
Commits on Nov 2, 2010
  1. Fix test-http-buffer-sanity

    ry committed Oct 11, 2010
    Backported from 7e24a05
    Add test/simple/test-http-curl-chunk-problem.js
Commits on Oct 24, 2010
  1. bump version to 0.2.4

    ry committed Oct 24, 2010
  2. Make sure Error object on exec() gets killed member

    ry committed Oct 23, 2010
    Also default to SIGTERM for destruction when exceeding timeout or buffer on
    Back ported from v0.3; original commits:
  3. Add isatty for isaacs

    ry committed Oct 21, 2010
  4. one more 'listening' race condition

    ry committed Oct 23, 2010
  5. Fix a few 'listening' race conditions

    ry committed Oct 23, 2010
    in test-http-client-parse-error
  6. Do not spin on aceept() with EMFILE

    ry committed Oct 23, 2010
    When a server hit EMFILE it would continue to try to accept new connections
    from the queue. This patch introduces a timeout of one second where it will
    stop trying to accept new files. After the second is over it tries again.
    This is a rather serious bug that has been effecting many highly concurrent
    programs. It was introduced in 4593c0, version v0.2.0.
    TODO: A test for this situation. Currently I test it like this
      termA% cd projects/node
      termA% ulimit -n 256
      termA% ./node benchmark/idle_server.js
      termB% cd projects/node
      termB% ./node benchmark/idle_clients.js
    And watch how the server process behaves.
  7. Add signal handlers so we clean up before exiting.

    thughes committed with ry Oct 12, 2010
    Add SIGTERM and SIGINT signal handlers so that we run the exit handlers
    before exiting when getting these signals. Fixes an issue where we
    couldn't run vi after CTRL+C'ing node because the stdin fd was left
    Also the test from ceb5331a64e813f3a982c702fea5dcd2db2e7a290
  8. Fix parsing of linux memory

    Vitali Lovich committed with ry Jul 16, 2010
    If process name contains a space, this parsing fails for no good reason.