Permalink
Commits on Oct 3, 2012
  1. Allow prepare to be async

    committed Oct 3, 2012
Commits on Oct 1, 2012
  1. Add time_func parameter to IOLoop, and make it possible to use time.m…

    …onotonic.
    
    This means that calls to IOLoop.add_timeout that pass a number must be
    updated to use IOLoop.time instead of time.time.
    
    There are still some places where we use time.time in the code, but they
    are either places where wall time is desired, or non-critical deltas (e.g.
    printing elapsed time at the end of a request).
    
    Thanks to apenwarr and mgenti for pull requests and discussion relating to
    this change. (#558 and #583)
    bdarnell committed Oct 1, 2012
  2. IOLoop poller implementations are now subclasses of IOLoop.

    Update testing command-line flags to allow configuration of a non-default
    IOLoop.
    bdarnell committed Oct 1, 2012
  3. Extract configure logic from AsyncHTTPClient to a base class.

    IOLoop now extends this base class as well, although no other
    implementations are provided yet.  This does not include the
    pseudo-singleton magic from AsyncHTTPClient.
    bdarnell committed Oct 1, 2012
  4. AsyncHTTPClient: remove legacy magic around max_clients arg.

    Fix a bug in which configured kwargs would be applied to a non-configured
    class.
    bdarnell committed Oct 1, 2012
Commits on Sep 30, 2012
  1. Introduce parse callbacks in the options module.

    This is a generalization of the existing magic for logging.  Logging
    configuration is now moved to log.py.
    bdarnell committed Sep 30, 2012
  2. AsyncHTTPTestCase: bind the server port earlier so it's available

    in user-overridable methods like get_app.
    bdarnell committed Sep 30, 2012
  3. Cleanly shut down the ThreadPoolExecutor in Resolver tests.

    This was somehow causing a problem on Ubuntu 10.04.
    bdarnell committed Sep 30, 2012
Commits on Sep 29, 2012
  1. Doc coverage updates

    bdarnell committed Sep 29, 2012
  2. Merge branch 'futures'

    bdarnell committed Sep 29, 2012
  3. Drop twisted tests from pypy-full configuration.

    These tests seem to fail much more often on the futures branch than
    master for some unknown reason. (the failures are in the
    subprocess-related tests)
    bdarnell committed Sep 29, 2012
  4. Merge branch 'master' into futures

    Conflicts:
    	tornado/autoreload.py
    	tornado/ioloop.py
    	tornado/netutil.py
    	tornado/simple_httpclient.py
    	tornado/test/ioloop_test.py
    	tornado/test/runtests.py
    	tox.ini
    bdarnell committed Sep 29, 2012
  5. Simplify StackContext logic and behavior.

    Previously, there was an optimization to avoid recreating contexts
    that were already on the stack.  This optimization rarely mattered
    (especially given the movement to run all callbacks through
    IOLoop.add_callback), and sometimes caused surprising behavior as
    other exception handlers could be inserted between stack contexts that
    expected to be adjacent to each other or to the wrapped function.  Now
    each wrapped function recreates its full stack of contexts, even if
    some of those contexts were already on the stack.
    
    This change allows a use of NullContext in testing.py to be
    removed.
    bdarnell committed Sep 29, 2012
  6. Improve isolation of stack contexts.

    Previously, a chain of callbacks started without any contexts could
    accidentally pick up other contexts based on where the callbacks
    were run.  This was due to a mistaken optimization in the no-context
    case; now the behavior is the same whether the initial context was empty
    or not.
    bdarnell committed Sep 29, 2012
  7. Release note updates

    bdarnell committed Sep 29, 2012
  8. Add IOLoop.add_callback_from_signal, which avoids deadlocks

    which can occur when calling add_callback from a signal handler.
    
    Also fix an issue in the recent set_wakeup_fd change when running
    an IOLoop on a non-main thread.
    bdarnell committed Sep 29, 2012
Commits on Sep 24, 2012
  1. Merge branch 'master' into merge

    Conflicts:
    	tornado/simple_httpclient.py
    	tornado/test/web_test.py
    bdarnell committed Sep 24, 2012
Commits on Sep 20, 2012
Commits on Sep 17, 2012