Commits on Jun 20, 2010
Commits on Jun 18, 2010
  1. Close wsgi responses correctly - the close method, if present, will

    be on the result of self.wsgi_application() and not on the list
    of output we're building up.
    Ben Darnell committed Jun 18, 2010
Commits on Jun 10, 2010
  1. In the libcurl file descriptor limit hack, log to both stderr and

    logging.error since they may got to different places and one may be
    more visible than the other.
    Ben Darnell committed Jun 10, 2010
Commits on Jun 8, 2010
Commits on Jun 7, 2010
  1. Fix missing import

    Ben Darnell committed Jun 7, 2010
Commits on May 31, 2010
  1. Optionally allow nonstandard http methods to be used in httpclient.

    By default we check that the method is one of the standard ones (and
    is capitalized correctly), but this can be overridden to work with a
    server that has implemented nonstandard methods (e.g. CouchDB)
    Ben Darnell committed May 31, 2010
  2. Changed it so one can access the StringIO buffer

    This allows for people to use the file-like object
    that already exists without having to convert the body
    back to the StringIO
    Mike Lewis committed with Ben Darnell May 27, 2010
  3. Clear the close_callback set on the IOStream by RequestHandlers in

    finish(), so that the close_callback does not prevent garbage collection
    of the handlers.
    Ben Darnell committed May 31, 2010
  4. Close the socket on uncaught exceptions from iostream handlers.

    This prevents a possible denial of service if erroneous requests are
    made faster than garbage collection can reclaim socket file
    Ben Darnell committed May 31, 2010
  5. Improve parsing of multipart/form-data headers.

    This change was motivated by google app engine's xmpp support,
    which uses different spacing in the header than other common clients
    and quotes its boundary string.
    Based on changes by jehiah:
    Ben Darnell committed May 31, 2010
Commits on May 29, 2010
  1. Update documentation for WebSocketHandler

    Ben Darnell committed May 29, 2010
  2. Revert "websockets: continue listening for messages after parsing com…

    This reverts commit 9ea5f8a.
    The one-shot behavior of receive_message was intentional, and simply
    requeuing the old callback every time will eventually overflow the
    stack due to repeated async_callback wrappers.  An alternate interface
    that doesn't require receive_message to be called for every message
    may be added in a future change.
    See discussion at
    Ben Darnell committed May 29, 2010
Commits on May 25, 2010
  1. Allow StaticFileHandler subclasses to set additional headers on the r…

    Ben Darnell committed May 25, 2010
  2. Don't try to compute max() of an empty sequence (which throws an exce…

    Ben Darnell committed May 25, 2010
  3. Add a hacky workaround for libcurl's FD_SETSIZE bug. It's ugly,

    but better than undefined behavior.
    Ben Darnell committed May 25, 2010
Commits on May 20, 2010
Commits on May 17, 2010
  1. Use a lambda instead of functools.partial for pycurl.HEADERFUNCTION.

    Older versions of pycurl (including, which is the recommended
    version for Mac OS X 10.5) only work with real functions, not objects
    with a __call__ method like functools.partial.
    Remove exception-swallowing - curl versions that predate HEADERFUNCTION
    are no longer supported.
    Ben Darnell committed May 17, 2010
Commits on May 10, 2010
  1. Merge remote branch 'dlo/master'

    Ben Darnell committed May 10, 2010
  2. Translate </ to <\/ in json output to avoid issues with the string

    Ben Darnell committed May 10, 2010
  3. Support additional keyword arguments on cookies (to be handled by the

    underlying stdlib Cookie module)
    Ben Darnell committed May 10, 2010
Commits on May 4, 2010
  1. @dlo

    websockets: continue listening for messages after parsing completion

    The prior implementation stops listening for messages after the first
    message is received.
    dlo committed May 4, 2010
Commits on May 1, 2010
  1. Allow for missing "expires" field in facebook session, which can

    happen if offline_access is granted.
    Ben Darnell committed May 1, 2010
Commits on Apr 29, 2010
  1. @jparise
Commits on Apr 26, 2010
  1. @eklitzke @caseymrm
Commits on Apr 25, 2010
  1. @joerussbowman

    Updating base Twitter url

    joerussbowman committed with Ben Darnell Apr 24, 2010
Commits on Apr 22, 2010
  1. Clear itimer signals in autoreload so the combination of autoreload

    and ioloop.set_blocking_log_threshold doesn't cause the new process
    to get killed.
    Ben Darnell committed Apr 22, 2010
Commits on Apr 21, 2010
  1. cStringIO's constructor uses a 16-bit encoding when given a unicode

    string.  This is inconsistent with its write method, which encodes all
    strings as ascii (and rejects unicode strings iff they have any
    non-ascii characters).  This change uses utf-8 as the default encoding
    when constructing cStringIO objects in tornado.
    Ben Darnell committed Apr 21, 2010
  2. Add an option to log a stack trace any time the ioloop is blocked for

    more than a specified amount of time.
    Ben Darnell committed Apr 21, 2010
Commits on Apr 20, 2010
  1. Send all logging to the root logger instead of per-module loggers.

    This undoes the effect of
    Per-module loggers are problematic because only the top-level convenience
    logging.{error,warning,...} functions configure logging on-demand, so
    an app that only uses per-module loggers will produce no output except
    "no handlers found for logger X".  Since tornado.ioloop swallows and logs
    all exceptions, this makes it too hard to tell what's going on for apps
    that do not configure logging explicitly.
    Instead of setting log levels on individual module's loggers,
    logging.Handler.addFilter can be used with a filter that examines
    the module attribute of the log record.
    Ben Darnell committed Apr 20, 2010
Commits on Apr 19, 2010
  1. Better HTTP header parsing: Allow (and strip) any amount of leading

    and trailing whitespace around header values instead of just a single
    space.  Such whitespace is legal but appears to be uncommon (and nginx
    apparently normalizes everything to a single space)
    Ben Darnell committed Apr 19, 2010
  2. Add a closed flag to AsyncHTTPClient so that a scheduled perform call…

    won't cause an exception after the client is closed.
    Ben Darnell committed Apr 19, 2010
Commits on Apr 12, 2010
  1. Use the original request's protocol as the openid realm instead of ha…

    Ben Darnell committed Apr 12, 2010