]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoSet version number to 1.2.1 branch1.2 v1.2.1
Ben Darnell [Thu, 3 Mar 2011 20:41:26 +0000 (12:41 -0800)] 
Set version number to 1.2.1

14 years agoIn FacebookGraphMixin, explicitly request required user fields.
Ben Darnell [Thu, 3 Mar 2011 20:38:31 +0000 (12:38 -0800)] 
In FacebookGraphMixin, explicitly request required user fields.

This is necessary due to a recent change in the facebook API.

Closes #227.

14 years agoRevert "Declare dependencies in setup.py for automatic installation."
Ben Darnell [Tue, 22 Feb 2011 19:00:02 +0000 (11:00 -0800)] 
Revert "Declare dependencies in setup.py for automatic installation."

This reverts commit 19f850e19b4e432e0faed630b748e58069214300.

This turned out to be more trouble than it's worth, since it doesn't
interact well with external installations of pycurl (e.g. from a .deb).
These dependencies are going away soon anyway.

14 years agoUpdate version number to 1.2 v1.2.0
Ben Darnell [Sun, 20 Feb 2011 20:56:18 +0000 (12:56 -0800)] 
Update version number to 1.2

14 years agoDocument the fact that tornado can be installed with pip/etc.
Ben Darnell [Sun, 20 Feb 2011 20:49:53 +0000 (12:49 -0800)] 
Document the fact that tornado can be installed with pip/etc.

14 years agoCheck that the default certificates file exists in a unit test.
Ben Darnell [Sun, 20 Feb 2011 20:33:00 +0000 (12:33 -0800)] 
Check that the default certificates file exists in a unit test.

14 years agoDeclare dependencies in setup.py for automatic installation.
Ben Darnell [Sun, 20 Feb 2011 20:16:43 +0000 (12:16 -0800)] 
Declare dependencies in setup.py for automatic installation.

14 years agoAdd ca-certificates.crt as a data file in setup.py
Ben Darnell [Sat, 19 Feb 2011 23:57:12 +0000 (15:57 -0800)] 
Add ca-certificates.crt as a data file in setup.py

14 years agoTrack SSL handshake state separately from calling _add_io_state directly.
Ben Darnell [Sat, 19 Feb 2011 23:39:27 +0000 (15:39 -0800)] 
Track SSL handshake state separately from calling _add_io_state directly.

Calling _add_io_state would set a flag that immediately gets overwritten
in _handle_events when it sees that the application-level read/write
operations are idle.  This happens to work with kqueue but not with epoll.

14 years agoClear the Host header when following redirects
Ben Darnell [Sat, 19 Feb 2011 23:35:37 +0000 (15:35 -0800)] 
Clear the Host header when following redirects

14 years agoAdd more debugging options to command-line mode of simple_httpclient
Ben Darnell [Sat, 19 Feb 2011 23:31:11 +0000 (15:31 -0800)] 
Add more debugging options to command-line mode of simple_httpclient

14 years agoCall listen() on low-level socket test.
Ben Darnell [Sat, 19 Feb 2011 22:59:39 +0000 (14:59 -0800)] 
Call listen() on low-level socket test.

This is apparently required on linux but not on mac.

14 years agoSet both VERIFYPEER and VERIFYHOST according to the validate_cert setting.
Ben Darnell [Sat, 19 Feb 2011 22:29:35 +0000 (14:29 -0800)] 
Set both VERIFYPEER and VERIFYHOST according to the validate_cert setting.

14 years agoFix a case where callbacks could be called more than once in error conditions.
Ben Darnell [Sat, 19 Feb 2011 21:58:56 +0000 (13:58 -0800)] 
Fix a case where callbacks could be called more than once in error conditions.

14 years agoDon't call curl.unsetopt(pycurl.CAINFO) to reset CA certificates to default.
Ben Darnell [Sat, 19 Feb 2011 21:43:33 +0000 (13:43 -0800)] 
Don't call curl.unsetopt(pycurl.CAINFO) to reset CA certificates to default.

This doesn't work because it clobbers the default CA certs, causing all
certificates to be rejected.  There doesn't seem to be any way to restore
the defaults, so just leave it untouched in the default case and document
the requirement that all requests use ca_certs if any do.

14 years agoAdd logout link to authdemo for testing purposes.
Ben Darnell [Sat, 19 Feb 2011 21:33:21 +0000 (13:33 -0800)] 
Add logout link to authdemo for testing purposes.

14 years agoDocument new behavior of XSRF tokens.
Ben Darnell [Wed, 16 Feb 2011 21:36:50 +0000 (13:36 -0800)] 
Document new behavior of XSRF tokens.

14 years agoAdd linkify to the default template namespace.
Ben Darnell [Wed, 16 Feb 2011 21:34:35 +0000 (13:34 -0800)] 
Add linkify to the default template namespace.

14 years agoUse SO_REUSEADDR in low-level socket tests.
Ben Darnell [Wed, 16 Feb 2011 21:21:40 +0000 (13:21 -0800)] 
Use SO_REUSEADDR in low-level socket tests.

14 years agoUpdate docs for simple_httpclient.
Ben Darnell [Wed, 16 Feb 2011 21:05:23 +0000 (13:05 -0800)] 
Update docs for simple_httpclient.

14 years agoRevert "Undo documentation changes from the introduction of Application.listen()."
Ben Darnell [Wed, 16 Feb 2011 19:52:06 +0000 (11:52 -0800)] 
Revert "Undo documentation changes from the introduction of Application.listen()."

This reverts commit 2d42c18c36bb9bd6ff67dc71786cd6ce9332dd31.

14 years agoDon't modify the IOStream write buffer if the previous socket.send
Ben Darnell [Tue, 15 Feb 2011 22:46:16 +0000 (14:46 -0800)] 
Don't modify the IOStream write buffer if the previous socket.send
returned EWOULDBLOCK.

This satisfies openssl's requirement that the write buffer address
not change between calls to send.

14 years agoChange IOStream._read_buffer from cStringIO to a deque.
Ben Darnell [Tue, 15 Feb 2011 22:25:38 +0000 (14:25 -0800)] 
Change IOStream._read_buffer from cStringIO to a deque.

This change is mainly for consistency with the _write_buffer change.

14 years agoChange IOStream._write_buffer from cStringIO to a deque.
Ben Darnell [Tue, 15 Feb 2011 22:18:34 +0000 (14:18 -0800)] 
Change IOStream._write_buffer from cStringIO to a deque.

This lays the groundwork for a future change to fix an issue with openssl.

14 years agoAdd utility method for dealing with deques of strings, in preparation
Ben Darnell [Tue, 15 Feb 2011 22:14:37 +0000 (14:14 -0800)] 
Add utility method for dealing with deques of strings, in preparation
for moving from cStringIO to deques for IOStream buffers.

14 years agoAdd follow_redirects support to SimpleAsyncHTTPClient.
Ben Darnell [Tue, 15 Feb 2011 04:51:19 +0000 (20:51 -0800)] 
Add follow_redirects support to SimpleAsyncHTTPClient.

14 years agoLast part of certificate validation: check that the hostname matches.
Ben Darnell [Tue, 15 Feb 2011 04:19:58 +0000 (20:19 -0800)] 
Last part of certificate validation: check that the hostname matches.

14 years agoAdd ssl.match_hostname function backported from Python 3.2.
Ben Darnell [Tue, 15 Feb 2011 04:14:43 +0000 (20:14 -0800)] 
Add ssl.match_hostname function backported from Python 3.2.

https://bitbucket.org/brandon/backports.ssl_match_hostname

14 years agoDetect the connection being closed by the server in SimpleAsyncHTTPClient.
Ben Darnell [Tue, 15 Feb 2011 04:10:27 +0000 (20:10 -0800)] 
Detect the connection being closed by the server in SimpleAsyncHTTPClient.

14 years agoMake certificate validation optional with an HTTPRequest parameter
Ben Darnell [Tue, 15 Feb 2011 04:05:47 +0000 (20:05 -0800)] 
Make certificate validation optional with an HTTPRequest parameter
for consistency between curl and simple HTTPClients.

14 years agoPart 1 of certificate validation: Require that the cert be signed by a CA.
Ben Darnell [Tue, 15 Feb 2011 03:48:25 +0000 (19:48 -0800)] 
Part 1 of certificate validation: Require that the cert be signed by a CA.

14 years agoIn SSLIOStream, delay the connect_callback until the SSL handshake finishes.
Ben Darnell [Tue, 15 Feb 2011 03:23:56 +0000 (19:23 -0800)] 
In SSLIOStream, delay the connect_callback until the SSL handshake finishes.

14 years agoAdd a set of default SSL CA certificates for use with SimpleAsyncHTTPClient.
Ben Darnell [Tue, 15 Feb 2011 02:58:02 +0000 (18:58 -0800)] 
Add a set of default SSL CA certificates for use with SimpleAsyncHTTPClient.

This data was copied from the Ubuntu package ca-certificates (and is
ultimately derived for the most part from Mozilla).  Its license is
MPL/GPL, unlike the rest of tornado, but for an optional data file it
ought to be fine.

14 years agoAdd a simple mechanism to override DNS lookups in SimpleAsyncHTTPClient.
Ben Darnell [Mon, 6 Dec 2010 01:07:46 +0000 (17:07 -0800)] 
Add a simple mechanism to override DNS lookups in SimpleAsyncHTTPClient.

Intended for use in SSL unittests, where we will need to make requests to
localhost using different domain names.

14 years agoMake @removeslash a no-op when applied to a request for '/'.
Ben Darnell [Sat, 12 Feb 2011 04:25:06 +0000 (20:25 -0800)] 
Make @removeslash a no-op when applied to a request for '/'.

This prevents a redirect loop as browsers interpret an empty redirect
as a redirect to /.

14 years agoRemoving the *.png pattern for the 'demos' line. 218/head
Jon Parise [Sat, 12 Feb 2011 01:52:12 +0000 (17:52 -0800)] 
Removing the *.png pattern for the 'demos' line.

Because there aren't any .png files in the 'demos' hierarchy, this was causing
a warning when the 'egg_info' setup command was run.

14 years agoCheck XSRF tokens on all non-idempotent requests instead of just POST.
Ben Darnell [Thu, 10 Feb 2011 01:09:57 +0000 (17:09 -0800)] 
Check XSRF tokens on all non-idempotent requests instead of just POST.

14 years agoUndo documentation changes from the introduction of Application.listen().
Ben Darnell [Thu, 10 Feb 2011 01:01:53 +0000 (17:01 -0800)] 
Undo documentation changes from the introduction of Application.listen().

The examples given do not work in the 1.1.1 release.  This change should be
reverted when 1.2 is released and the new examples work.

14 years agoMerge commit 'v1.1.1'
Ben Darnell [Wed, 9 Feb 2011 06:53:59 +0000 (22:53 -0800)] 
Merge commit 'v1.1.1'

Conflicts:
setup.py

14 years agoTag release 1.1.1 v1.1.1
Ben Darnell [Wed, 9 Feb 2011 06:43:07 +0000 (22:43 -0800)] 
Tag release 1.1.1

14 years agoBACKWARDS-INCOMPATIBLE: Fix XSRF security vulnerability.
Ben Darnell [Wed, 9 Feb 2011 06:29:40 +0000 (22:29 -0800)] 
BACKWARDS-INCOMPATIBLE: Fix XSRF security vulnerability.

This is a backwards-incompatible change.  Applications that previously
relied on a blanket exception for XMLHTTPRequest may need to be modified
to explicitly include the XSRF token when making ajax requests.

The tornado chat demo application demonstrates one way of adding this
token (specifically the function postJSON in demos/chat/static/chat.js).

More information about this change and its justification can be found at
http://www.djangoproject.com/weblog/2011/feb/08/security/
http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails

Closes #214.

14 years agoFix error in docstring.
Ben Darnell [Mon, 7 Feb 2011 02:58:58 +0000 (18:58 -0800)] 
Fix error in docstring.

Closes #209.

14 years agoAdd a test to verify reasonable behavior when HTTPS server is sent non-SSL request.
Ben Darnell [Mon, 7 Feb 2011 02:42:04 +0000 (18:42 -0800)] 
Add a test to verify reasonable behavior when HTTPS server is sent non-SSL request.

Prompted by issue #211.

14 years agoUse request.uri instead of request.path in websocket handshake.
Ben Darnell [Tue, 25 Jan 2011 20:15:37 +0000 (12:15 -0800)] 
Use request.uri instead of request.path in websocket handshake.

Closes #208.

14 years agoUpdate example in XSRF section.
Ben Darnell [Tue, 25 Jan 2011 20:02:11 +0000 (12:02 -0800)] 
Update example in XSRF section.

Login forms don't actually need XSRF protection, so use a message-posting
form instead.

14 years agoMove request logging from RequestHandler to Application.
Ben Darnell [Fri, 21 Jan 2011 21:14:06 +0000 (13:14 -0800)] 
Move request logging from RequestHandler to Application.

Logging can now be configured with either a subclass or setting of
Application.  This replaces the previous method of overriding a private
method of RequestHandler, which was difficult to do for built-in handlers
(StaticFileHandler and RedirectHandler).

14 years agoFix commit 377c160 when connection is None.
Ben Darnell [Fri, 21 Jan 2011 06:13:12 +0000 (22:13 -0800)] 
Fix commit 377c160 when connection is None.

14 years agoSet HTTPRequest.protocol correctly when using the built-in SSL support.
Ben Darnell [Thu, 20 Jan 2011 19:59:45 +0000 (11:59 -0800)] 
Set HTTPRequest.protocol correctly when using the built-in SSL support.

Closes #202.

14 years agoUse kwargs when constructing RedirectHandlers.
Ben Darnell [Thu, 20 Jan 2011 19:52:53 +0000 (11:52 -0800)] 
Use kwargs when constructing RedirectHandlers.

Closes #205.

14 years agoAdded missing attribute "stream" in call to getpeercert() in HTTPRequest.get_ssl_cert... 206/head
rickard.bottcher [Wed, 19 Jan 2011 14:18:30 +0000 (15:18 +0100)] 
Added missing attribute "stream" in call to getpeercert() in HTTPRequest.get_ssl_certificate().

14 years agoReplace more uses of cStringIO.getvalue() with .tell().
Ben Darnell [Thu, 13 Jan 2011 18:51:35 +0000 (10:51 -0800)] 
Replace more uses of cStringIO.getvalue() with .tell().

14 years agoMerge remote branch 'didip/master' into merge
Ben Darnell [Thu, 13 Jan 2011 18:50:30 +0000 (10:50 -0800)] 
Merge remote branch 'didip/master' into merge

14 years agoAdd some comments about thread safety.
Ben Darnell [Wed, 12 Jan 2011 20:14:57 +0000 (12:14 -0800)] 
Add some comments about thread safety.

14 years agoreset() only set current position back to 0. What we want here is truncate(). 203/head
Didip Kerabat [Mon, 10 Jan 2011 19:56:28 +0000 (11:56 -0800)] 
reset() only set current position back to 0. What we want here is truncate().

But, per http://stackoverflow.com/questions/4330812/how-do-i-clear-a-stringio-object discussion, creating new StringIO() is cheaper.

14 years agoFurther optimization by using tell() and reset()
Didip Kerabat [Mon, 10 Jan 2011 19:45:08 +0000 (11:45 -0800)] 
Further optimization by using tell() and reset()

14 years agouse cStringIO on _read_buffer and _write_buffer
Didip Kerabat [Mon, 10 Jan 2011 03:34:38 +0000 (19:34 -0800)] 
use cStringIO on _read_buffer and _write_buffer

14 years agoUse a list instead of a set for IOLoop callbacks. This preserves order
Ben Darnell [Thu, 6 Jan 2011 20:36:46 +0000 (12:36 -0800)] 
Use a list instead of a set for IOLoop callbacks.  This preserves order
and allows the same callback object to be reused.

A set was originally used to support remove_callback(), but that method
was removed in the 1.1 release.

14 years agoUse absolute paths in RequestHandler._static_hashes to allow for different
Ben Darnell [Mon, 3 Jan 2011 21:45:52 +0000 (13:45 -0800)] 
Use absolute paths in RequestHandler._static_hashes to allow for different
static_paths.

14 years agoLog exceptions with exc_info=True instead of exc_info=e.
Ben Darnell [Mon, 3 Jan 2011 20:32:44 +0000 (12:32 -0800)] 
Log exceptions with exc_info=True instead of exc_info=e.

The logging module checks to see if the value passed for exc_info is a
tuple, and if so assumes it contains (type, value, traceback).
A bug in python 2.5 and 2.6 causes context manager's __exit__ methods
to sometimes receive a tuple instead of an exception object, which causes
a nonsensical message to be logged.

14 years agoFix stack trace logging for uncaught RequestHandler exceptions.
Ben Darnell [Tue, 28 Dec 2010 02:30:21 +0000 (18:30 -0800)] 
Fix stack trace logging for uncaught RequestHandler exceptions.

_handle_request_exception is a private method, but since I've endorsed
overriding it on the mailing list preserve backwards compatibility by
re-raising the exception so it appears in sys.exc_info().

Closes #199.

14 years agoRemove logging for EINTR in IOLoop, since this is not really an error.
Ben Darnell [Fri, 17 Dec 2010 21:42:33 +0000 (13:42 -0800)] 
Remove logging for EINTR in IOLoop, since this is not really an error.

14 years agoConstruct ErrorHandler with kwargs instead of positional arguments
Ben Darnell [Tue, 14 Dec 2010 20:22:17 +0000 (12:22 -0800)] 
Construct ErrorHandler with kwargs instead of positional arguments
for consistency with normal handler construction (and compatibility with
the initialize() changes from a couple of commits ago).

Closes #194.

14 years agoOverride initialize() instead of __init__() in RequestHandler subclasses.
Ben Darnell [Mon, 13 Dec 2010 20:33:25 +0000 (12:33 -0800)] 
Override initialize() instead of __init__() in RequestHandler subclasses.

This is a slight simplification and makes it easier to create further
application-specific subclasses.

Closes #191.

14 years agotornado.httpserver is unused in this scope 193/head
Jon Parise [Mon, 13 Dec 2010 18:28:09 +0000 (10:28 -0800)] 
tornado.httpserver is unused in this scope

14 years agoAdd a simple HTTP benchmark
Ben Darnell [Sat, 11 Dec 2010 01:03:21 +0000 (17:03 -0800)] 
Add a simple HTTP benchmark

14 years agoAvoid unnecessary work in HTTPHeaders._normalize_name.
Ben Darnell [Fri, 10 Dec 2010 18:56:07 +0000 (10:56 -0800)] 
Avoid unnecessary work in HTTPHeaders._normalize_name.

14 years agoImplement ExceptionStackContext independently of StackContext to improve
Ben Darnell [Sat, 11 Dec 2010 00:04:39 +0000 (16:04 -0800)] 
Implement ExceptionStackContext independently of StackContext to improve
performance.

14 years agoAvoid use of the @contextlib.contextmanager decorator.
Ben Darnell [Fri, 10 Dec 2010 23:56:38 +0000 (15:56 -0800)] 
Avoid use of the @contextlib.contextmanager decorator.

This decorator has over 5x the overhead of a hand-written class
with __enter__ and __exit__ methods.

14 years agoMerge remote branch 'slay2k/fb_fix_graph_mixin'
Ben Darnell [Fri, 3 Dec 2010 23:33:13 +0000 (15:33 -0800)] 
Merge remote branch 'slay2k/fb_fix_graph_mixin'

14 years agoFix duplicated remote_ip field in HTTPRequest.__repr__
Ben Darnell [Wed, 1 Dec 2010 06:28:53 +0000 (22:28 -0800)] 
Fix duplicated remote_ip field in HTTPRequest.__repr__

Closes #185.

14 years agoA few fixes for FacebookGraphMixin 183/head
Romy Maxwell [Mon, 29 Nov 2010 09:44:51 +0000 (01:44 -0800)] 
A few fixes for FacebookGraphMixin

- Added error handler for _on_access_token
- Modified to allow for extra returned fields in the auth call
- Removed username, which seems to have been deprecated

14 years agoUse request.uri instead of request.path as default redirect for auth.py.
Ben Darnell [Mon, 29 Nov 2010 23:01:16 +0000 (15:01 -0800)] 
Use request.uri instead of request.path as default redirect for auth.py.

This allows the next parameter (added by @authenticated) to be preserved.

Closes #161.

14 years agoLog malformed HTTP requests more gracefully.
Ben Darnell [Mon, 29 Nov 2010 22:08:01 +0000 (14:08 -0800)] 
Log malformed HTTP requests more gracefully.

Malformed requests are now logged as a single INFO line (which
includes the IP address) instead of a verbose but uninformative stack
trace.

14 years agoTreat HEAD requests the same as GET for e.g. sending Etag headers.
Ben Darnell [Mon, 29 Nov 2010 21:49:06 +0000 (13:49 -0800)] 
Treat HEAD requests the same as GET for e.g. sending Etag headers.

Closes #180.

14 years agoPreserve the order of css_files from UIModules, like we already do for JS
Ben Darnell [Mon, 29 Nov 2010 21:34:15 +0000 (13:34 -0800)] 
Preserve the order of css_files from UIModules, like we already do for JS

14 years agoExpose the client's SSL certificate as HTTPRequest.get_ssl_certificate().
Ben Darnell [Mon, 29 Nov 2010 21:17:03 +0000 (13:17 -0800)] 
Expose the client's SSL certificate as HTTPRequest.get_ssl_certificate().

14 years agoFix bug in multipart/form-data requests. 176/head 177/head
Josh Staiger [Tue, 23 Nov 2010 00:31:08 +0000 (19:31 -0500)] 
Fix bug in multipart/form-data requests.

In Firefox and Safari, I'm seeing k = " boundary"
for multipart/form-data posts.

" boundary" != "boundary", so the mime fields
aren't parsed.

This commit gets rid of the leading space.

14 years agoUpdate pydoc to mention response.rethrow instead of reraise. 173/head
Josh Staiger [Sat, 20 Nov 2010 16:51:39 +0000 (11:51 -0500)] 
Update pydoc to mention response.rethrow instead of reraise.

14 years agoDon't assume 'boundary' is last field in Content-Type header.
Ben Darnell [Fri, 19 Nov 2010 22:04:53 +0000 (14:04 -0800)] 
Don't assume 'boundary' is last field in Content-Type header.

http://groups.google.com/group/python-tornado/browse_thread/thread/d0531e331c189c56#

Closes #172.

14 years agoMerge remote branch 'vijayp/master'
Ben Darnell [Thu, 18 Nov 2010 19:26:14 +0000 (11:26 -0800)] 
Merge remote branch 'vijayp/master'

14 years agoSet proxy to '' if no proxy is explicitly set in the request.
vijayp [Thu, 18 Nov 2010 18:58:44 +0000 (13:58 -0500)] 
Set proxy to '' if no proxy is explicitly set in the request.
If this is not done, curls with proxies set are re-inserted into the empty list, and are then reused. This causes connections to be randomly proxied, if some requests use a proxy, and others don't.

14 years agoAdd debug logging for queuing in simple_httpclient.
Ben Darnell [Wed, 17 Nov 2010 00:37:53 +0000 (16:37 -0800)] 
Add debug logging for queuing in simple_httpclient.

Also remove some old extremely verbose debug logging.

14 years agoAdd address parameter to Application.listen to match HTTPServer.listen
Ben Darnell [Wed, 17 Nov 2010 00:30:51 +0000 (16:30 -0800)] 
Add address parameter to Application.listen to match HTTPServer.listen

14 years agoFixes for python 2.5
Ben Darnell [Tue, 16 Nov 2010 05:32:51 +0000 (21:32 -0800)] 
Fixes for python 2.5

14 years agoAdd convenience method Application.listen(port) so most apps don't need
Ben Darnell [Tue, 16 Nov 2010 05:15:32 +0000 (21:15 -0800)] 
Add convenience method Application.listen(port) so most apps don't need
to explicitly touch HTTPServer.

14 years agoImplement max_clients limitation and queueing for SimpleAsyncHTTPClient
Ben Darnell [Tue, 16 Nov 2010 00:53:44 +0000 (16:53 -0800)] 
Implement max_clients limitation and queueing for SimpleAsyncHTTPClient

14 years agoPort pseudo-singleton magic from AsyncHTTPClient to SimpleAsyncHTTPClient
Ben Darnell [Tue, 16 Nov 2010 00:11:09 +0000 (16:11 -0800)] 
Port pseudo-singleton magic from AsyncHTTPClient to SimpleAsyncHTTPClient

14 years agoAdd timeout support to simple_httpclient
Ben Darnell [Sun, 14 Nov 2010 22:45:17 +0000 (14:45 -0800)] 
Add timeout support to simple_httpclient

14 years agoImprove docs for IOLoop.add/remove_timeout()
Ben Darnell [Sun, 14 Nov 2010 20:58:14 +0000 (12:58 -0800)] 
Improve docs for IOLoop.add/remove_timeout()

14 years agoFix typo in docs
Ben Darnell [Tue, 9 Nov 2010 19:52:34 +0000 (11:52 -0800)] 
Fix typo in docs

14 years agoAdd Amharic to tornado.locale's list of languages.
Ben Darnell [Mon, 8 Nov 2010 19:53:36 +0000 (11:53 -0800)] 
Add Amharic to tornado.locale's list of languages.

Closes #168.

14 years agoFix mangled language names in tornado.locale for Chinese, Japanese, Korean.
Ben Darnell [Mon, 8 Nov 2010 19:27:27 +0000 (11:27 -0800)] 
Fix mangled language names in tornado.locale for Chinese, Japanese, Korean.

For Chinese, also follow Google's example and reduce number of
variants to two: Simplified (zh_CN) and Traditional (zh_TW) (since I
couldn't find an appropriate copy-paste source for localized versions
of "Chinese (Hong Kong)" and "Chinese (Taiwan)")

Closes #168.

14 years agoSupport X-Forwarded-Proto in addition to X-Scheme
Ben Darnell [Mon, 8 Nov 2010 18:54:50 +0000 (10:54 -0800)] 
Support X-Forwarded-Proto in addition to X-Scheme

14 years agoSupport websockets over https.
Ben Darnell [Mon, 8 Nov 2010 18:51:02 +0000 (10:51 -0800)] 
Support websockets over https.

Closes #164.

14 years agoSupport "from x import y" in templates, not just "import x"
Ben Darnell [Mon, 8 Nov 2010 18:49:03 +0000 (10:49 -0800)] 
Support "from x import y" in templates, not just "import x"

14 years agoFix typo from commit 2b44fac
Ben Darnell [Sat, 6 Nov 2010 18:07:59 +0000 (11:07 -0700)] 
Fix typo from commit 2b44fac

Closes #169.

14 years agoCapture StackContext explicitly in HTTPConnection to prevent leaks from
Ben Darnell [Fri, 5 Nov 2010 18:19:18 +0000 (11:19 -0700)] 
Capture StackContext explicitly in HTTPConnection to prevent leaks from
one request to the next.

14 years agoCheck for a closed connection in _add_io_state.
Ben Darnell [Thu, 4 Nov 2010 18:47:34 +0000 (11:47 -0700)] 
Check for a closed connection in _add_io_state.

Closes #163.

14 years agofix linkify regex plus add unit test
Paul Buchheit [Thu, 4 Nov 2010 00:12:31 +0000 (17:12 -0700)] 
fix linkify regex plus add unit test

14 years agoDon't manually set Content-Length in StaticFileHandler.
Ben Darnell [Thu, 28 Oct 2010 04:23:29 +0000 (21:23 -0700)] 
Don't manually set Content-Length in StaticFileHandler.

Content-Length will be set automatically in RequestHandler.finish.  This
change fixes a bug in which RequestHandler.finish's Etag support strips
the response body without changing any headers.  Transfer headers
(including Content-Length and Transfer-Encoding) are the responsibility
of the framework, not the "application-level" handlers (which includes
StaticFileHandler).

Closes #160.