Commits on Aug 6, 2010
  1. Runner for CGI scripts

    committed Aug 6, 2010
  2. Introduce 'runners', that execute a file instead of just sending thei…

    …r contents.
    
    Files with an the extension '.sjs' were already executed in a node sandbox.
    Runners provide a more flexible approach that allow other types of files (e.g. PHP scripts) to executed as well.
    I'd rather have named them 'handlers' but a different concept of handlers already existed in antinode.
    committed Aug 6, 2010
Commits on Jul 28, 2010
  1. @mhansen
Commits on Jul 26, 2010
  1. @mhansen

    Add support for middleware above node

    through the 'preprocess' hook. See the test for details, I'll document
    this when I'm happy it's stable
    mhansen committed Jul 27, 2010
  2. @mhansen

    make all the tests pass again

    mhansen committed Jul 27, 2010
  3. @mhansen
  4. @mhansen

    Bugfix: Responses closed before sending's finished

    Premature closing of response was causing corruption transferring photos
    over slow connections
    mhansen committed Jul 27, 2010
  5. @mhansen
  6. @mhansen

    new test picture

    mhansen committed Jul 27, 2010
  7. @mhansen

    Merge branch 'master' of github.com:mhansen/antinode

    Conflicts:
    	lib/antinode.js
    mhansen committed Jul 27, 2010
Commits on Jul 14, 2010
  1. typecheck safety

    Davis committed Jul 13, 2010
Commits on Jul 10, 2010
  1. @mhansen
  2. @mhansen

    move execute_sjs out of closure

    mhansen committed Jul 10, 2010
  3. @mhansen
Commits on Jun 22, 2010
  1. @mhansen

    Fixes #6

    mhansen committed Jun 23, 2010
Commits on Jun 21, 2010
  1. @mhansen
  2. @mhansen

    Remove readStream.destroy() call on timeout

    It's causing a lot of errors on closing the fd, even after
    I started checking the fd before destroying it. I suppose it's the
    underlying stream implementation trying to destroy() a stream twice.
    
    net:231
      close(fd);
      ^
    Error: EBADF, Bad file descriptor
        at closeFD (net:231:3)
        at Stream.destroy (net:999:17)
        at Stream.<anonymous> (http:731:12)
        at Stream.emit (events:42:20)
        at Timer.callback (net:151:19)
        at node.js:221:9
    
    Will have to look at the Stream source code to see if I can find the
    problem. Till then, the file descriptors are automatically closed when
    the readStream reaches the end, so antinode shouldn't leak file
    descriptors.
    mhansen committed Jun 21, 2010
  3. @mhansen
  4. @mhansen

    Remove unused setting

    mhansen committed Jun 21, 2010
Commits on Jun 20, 2010
  1. @mhansen

    tests for HTTP HEAD

    mhansen committed Jun 21, 2010
  2. @mhansen

    dont crash on HEAD server errors

    mhansen committed Jun 21, 2010
  3. @mhansen

    bump version

    mhansen committed Jun 21, 2010
  4. @mhansen

    dont die on HEAD requests

    mhansen committed Jun 21, 2010
  5. @mhansen

    Stream and Buffer based read/write loop.

    - We moved to sendfile before node.JS had binary buffers. A read write
      loop is a lot faster now than back when node was converting everything
      to UTF-8 strings. Sendfile isn't needed.
    
    Sendfile(2) was causing all sorts of hassles
    - Connections would timeout, then sendfile would try and send out a null
      file descriptor
    - Sendfile(2) has crap error messages for when the shit hits the fan.
      'bad argument'
    mhansen committed Jun 20, 2010
  6. @mhansen

    default timeout was too short

    mhansen committed Jun 20, 2010
  7. @mhansen
  8. @mhansen
Commits on Jun 16, 2010
  1. @mhansen

    tidy up source (into 80 columns)

    mhansen committed Jun 16, 2010
  2. @mhansen
  3. @mhansen

    Refactor test suite

    mhansen committed Jun 16, 2010
  4. @mhansen

    Lots of linting

    mhansen committed Jun 16, 2010
Commits on Jun 14, 2010
  1. @mhansen

    Timeout idle connections, and close idle fd's

    So antinode doesn't leak sockets or file descriptors when a lot of idle
    connections are made.
    mhansen committed Jun 15, 2010
  2. @mhansen

    Revert "Remove timeout on connections"

    Reinstate timeouts so that erroneous/malicious clients can't bring
    down the server by opening thousands of connections then never close
    them.
    And add fixes so that the timeout is incremented every time there
    is data outgoing on the socket, so that large files can be sent
    without timing out.
    
    This reverts commit 558a63f.
    mhansen committed Jun 15, 2010