Commits on Jan 1, 2011
  1. Fixes a test bug whereby sending a message that didn't deserialize in…

    …to an iolist (for example, an integer) would break the nicer logging in kanaloa_test_app.
    committed Jan 1, 2011
Commits on Dec 28, 2010
  1. Moves the tests to the kanaloa-dev-service package so that they're ne…

    …xt to the server that they depend on.
    Consumers of the client package may not want the tests.
    committed Dec 28, 2010
Commits on Dec 27, 2010
  1. As an unintended result of previous commit 98d5e45, we now support pa…

    …rsing chunks that span multiple onreadystatechanged callbacks.
    This change stops us from trimming out newlines that may be in the midst of an incomplete chunk.
    committed Dec 27, 2010
  2. Adds new test case to consistently reproduce message splitting issue.…

    … The server sends down a flood of messages that are split into three chunks, but are recombined by the browser into one onreadystatechanged event.
    committed Dec 27, 2010
Commits on Dec 24, 2010
  1. Fixes an issue whereby large messages would be split across multiple …

    …XmlHttpRequest onReadyStateChanged callbacks when streaming.
    Limits the maximum encoded message size to 512 bytes, and the maximum batch (HTTP chunk) size to 1024.
    committed Dec 24, 2010
Commits on Dec 23, 2010
  1. Slightly nicer test case. Good to check that the messages received ar…

    …e in fact the ones that we expect.
    committed Dec 23, 2010
  2. Fixes bug with sending multiple messages, adding a new test for this …

    Cleanup of server comment and client build dependency.
    committed Dec 23, 2010
Commits on Aug 16, 2010
  1. Fixes a bug where two outgoing posts were being sent at the same time…

    …, because the first's readyState had not changed yet.
    Fixes a bug where onConnectionClosed would be called twice when the connection was closed by the server.
    Adds a test for detecting server disconnect. The client only knows for sure when it tries to reconnect and gets a 410.
    committed Aug 16, 2010
  2. Fixes multiple problems with connction reconnect and longpoll callbac…

    …k processing introduced when adding the connection open/close handlers.
    Notably, we now read all relevant information from the XmlHttpRequest up front, because calling disconnect() in a callback handler will abort() the underlying request.
    committed Aug 16, 2010
Commits on Aug 10, 2010
  1. Adding jquery as a dependency for kanaloa-dev-service, since it is ne…

    …eded for the integration tests.
    committed Aug 10, 2010
  2. Fixes a problem with the init service whereby the emulator process wo…

    …uld go crazy and consume 100% cpu on stop.
    I think the problem had something to do with multiple pids in the pid file.
    The new strategy is to use pgrep more judiciously.
    But in general, the init script is still a hack because I cannot figure out how to make run_erl and start-stop-daemon work together (it is the beam process that needs its pid to be recorded).
    committed Aug 10, 2010
Commits on Aug 9, 2010
  1. Forcing "make test".

    committed Aug 9, 2010
  2. Branches the test application off from kanaloa-dev into new package k…

    …analoa-dev-service. Moves the test app from kanaloa to kanaloa-dev-service.
    People who are interested in developing with kanaloa may choose kanaloa-dev. They do not want a test service running.
    People who are actually developing kanaloa itself probably do want the dev service, as the integration tests depend on it.
    committed Aug 9, 2010
  3. Adding init service for kanaloa-dev, which starts the test service.

    This is installed and automatically turned on for the kanaloa-dev package.
    committed Aug 9, 2010
  4. Adds a "stress" test, which sends 20 messages and confirms that they …

    …are processed in order.
    committed Aug 9, 2010
  5. Adds a disconnect() method to KanaloaConnection.

    Adds a first simple connection test.
    committed Aug 9, 2010
Commits on Aug 8, 2010
  1. Fixes client reconnect bug caused by incomplete rename of connect to …

    Fixes incorrect path in kanaloa nginx config.
    Changes to, since I never actually use it to build (need to do "make install" first anyway).
    Adds some nicer behavior to the test server defined in start_kanaloa.erl by making it return a timestamp and exit the owner process on demand.
    Adds kanaloa_utils module, with a function to get the current JavaScript timestamp.
    committed Aug 8, 2010
  2. Adds infrastructure to build javascript documentation with jsdoc-tool…

    Changes the server doc install path to include the version number.
    committed Aug 8, 2010
  3. Removing kanaloa-deb behavior of activating the "kanaloa" site and re…

    …starting nginx. Now it just adds the config to sites-available.
    committed Aug 8, 2010