]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
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.

14 years agoMerge remote branch 'szeim/master'
Ben Darnell [Wed, 27 Oct 2010 19:11:59 +0000 (12:11 -0700)] 
Merge remote branch 'szeim/master'

14 years agoMerge remote branch 'fiam/master'
Ben Darnell [Wed, 27 Oct 2010 18:47:25 +0000 (11:47 -0700)] 
Merge remote branch 'fiam/master'

14 years agoSSLIOStream._do_ssl_handshake SSL error check 159/head
Imre SZEBENYI [Wed, 27 Oct 2010 11:36:12 +0000 (13:36 +0200)] 
SSLIOStream._do_ssl_handshake SSL error check

14 years agoFixed IOStream._handle_events (try/except block)
Imre SZEBENYI [Wed, 27 Oct 2010 11:34:47 +0000 (13:34 +0200)] 
Fixed IOStream._handle_events (try/except block)

Fixed IOStream._handle_events (try/except block) to prevent
infinite loop when an unhandled exception occurs

14 years agoMake exception handling in AsyncHTTPClient more customizable 158/head
Alberto García Hierro [Sat, 2 Oct 2010 16:57:35 +0000 (18:57 +0200)] 
Make exception handling in AsyncHTTPClient more customizable

Call handle_callback_exception() with the callback as argument
instead of hardcoding the call to logging.debug(). This way, users
can add their own exception handling code by subclassing
AsyncHTTPClient.

Default implementation for handle_callback_exception() calls that
same function on the IOLoop associated to this AsyncHTTPClient
instance, so users can handle any exceptions raised from their
callbacks just by overriding handle_callback_exception() in IOLoop.

14 years agoAdd gzip support to SimpleAsyncHTTPClient
Ben Darnell [Thu, 21 Oct 2010 23:00:42 +0000 (16:00 -0700)] 
Add gzip support to SimpleAsyncHTTPClient

14 years agoSupport minor HTTP request attributes in SimpleAsyncHTTPClient.
Ben Darnell [Thu, 21 Oct 2010 22:17:06 +0000 (15:17 -0700)] 
Support minor HTTP request attributes in SimpleAsyncHTTPClient.

Adds allow_nonstandard_methods and user_agent, and gives an explicit
warning for network_interface.

14 years agoAdd basic auth support to SimpleAsyncHTTPClient
Ben Darnell [Thu, 21 Oct 2010 21:58:30 +0000 (14:58 -0700)] 
Add basic auth support to SimpleAsyncHTTPClient

14 years agoUse AsyncHTTPTestCase.fetch instead of overriding it with a less useful
Ben Darnell [Thu, 21 Oct 2010 21:56:30 +0000 (14:56 -0700)] 
Use AsyncHTTPTestCase.fetch instead of overriding it with a less useful
version.

14 years agoReindent to 4 spaces
Ben Darnell [Thu, 21 Oct 2010 21:55:29 +0000 (14:55 -0700)] 
Reindent to 4 spaces

14 years agoAttempt to fix StaticFileHandler when os.path.sep != '/'.
Ben Darnell [Tue, 19 Oct 2010 21:12:33 +0000 (14:12 -0700)] 
Attempt to fix StaticFileHandler when os.path.sep != '/'.

14 years agoMerge remote branch 'mdg/default_filename'
Ben Darnell [Tue, 19 Oct 2010 21:09:47 +0000 (14:09 -0700)] 
Merge remote branch 'mdg/default_filename'

14 years agoAdd test case for encoding of request parameters and paths,
Ben Darnell [Tue, 19 Oct 2010 19:28:47 +0000 (12:28 -0700)] 
Add test case for encoding of request parameters and paths,
in response to a mailing list thread that raised questions about
handling of '%3F' and '?'.

14 years agoAdd a convenience method for synchronous fetches in AsyncHTTPTestCase
Ben Darnell [Tue, 19 Oct 2010 19:26:10 +0000 (12:26 -0700)] 
Add a convenience method for synchronous fetches in AsyncHTTPTestCase

14 years agoAdd test suite to tarball releases.
Ben Darnell [Tue, 19 Oct 2010 02:13:44 +0000 (19:13 -0700)] 
Add test suite to tarball releases.

14 years agomake StaticFileHandler support default filename 151/head 155/head
Matthew Graham [Sat, 9 Oct 2010 19:27:13 +0000 (15:27 -0400)] 
make StaticFileHandler support default filename

allows an app to configure a handler so that if a request to '/dir', the
handler will return '/dir/index.html' if it exists.  the default
filename, the 'index.html' part is configurable when creating the
Handler object.  Using the default filename is optional.

14 years agoSupport websockets over HTTP proxies.
Ben Darnell [Wed, 13 Oct 2010 21:58:49 +0000 (14:58 -0700)] 
Support websockets over HTTP proxies.

Adapted from
http://github.com/cbecker333/tornado/commit/ce02250ed3579706f800cfc5e622da834d79f933

14 years agoWindows compatibility for non-blocking IOStream.connect.
Ben Darnell [Wed, 13 Oct 2010 21:05:31 +0000 (14:05 -0700)] 
Windows compatibility for non-blocking IOStream.connect.

socket.connect returns a different errno, and read methods do not work
before the socket is connected (fixed docs and examples).

14 years agoRefactor async connect logic from SimpleAsyncHTTPClient to IOStream.
Ben Darnell [Wed, 13 Oct 2010 00:59:29 +0000 (17:59 -0700)] 
Refactor async connect logic from SimpleAsyncHTTPClient to IOStream.

Closes #146.

14 years agoReindent example in docstring, which apparently trips up emacs' indentation 149/head
Ben Darnell [Tue, 12 Oct 2010 00:24:11 +0000 (17:24 -0700)] 
Reindent example in docstring, which apparently trips up emacs' indentation
detection.

14 years agoMake Locale.format_date() behave sanely with dates in the future.
Ben Darnell [Tue, 12 Oct 2010 00:17:13 +0000 (17:17 -0700)] 
Make Locale.format_date() behave sanely with dates in the future.

Closes #150.

14 years agoRun all IOStream callbacks inside a NullContext so that exception
Ben Darnell [Tue, 12 Oct 2010 00:02:15 +0000 (17:02 -0700)] 
Run all IOStream callbacks inside a NullContext so that exception
handlers are run in the right order.

14 years agoMake USE_SIMPLE_HTTPCLIENT work without pycurl installed.
Ben Darnell [Mon, 11 Oct 2010 21:39:38 +0000 (14:39 -0700)] 
Make USE_SIMPLE_HTTPCLIENT work without pycurl installed.

14 years agoAdd initial version of non-curl-based AsyncHTTPClient.
Ben Darnell [Mon, 11 Oct 2010 21:16:52 +0000 (14:16 -0700)] 
Add initial version of non-curl-based AsyncHTTPClient.

14 years agoLimit the amount of data sent to socket.send at a time (for windows).
Ben Darnell [Mon, 11 Oct 2010 18:20:25 +0000 (11:20 -0700)] 
Limit the amount of data sent to socket.send at a time (for windows).

Closes #97.

14 years agoMove Links section from index.html to the wiki.
Ben Darnell [Fri, 8 Oct 2010 18:56:16 +0000 (11:56 -0700)] 
Move Links section from index.html to the wiki.
Remove links to unmaintained social media accounts.

14 years agoFix StackContext in IOStream. IOStream._handle_events now runs in a
Ben Darnell [Fri, 8 Oct 2010 18:25:52 +0000 (11:25 -0700)] 
Fix StackContext in IOStream.  IOStream._handle_events now runs in a
NullContext, and user callbacks are wrapped on entry to IOStream.

Also added logging for uncaught exceptions and made stack_context.wrap
None-safe.

http://groups.google.com/group/python-tornado/browse_thread/thread/9b5044def39c2ed9

14 years agoadd a linkify() function for converting text to html with link detection. Also change...
Paul Buchheit [Thu, 30 Sep 2010 21:41:13 +0000 (14:41 -0700)] 
add a linkify() function for converting text to html with link detection. Also changed xhtml_escape to not convert return value to utf8, since pages should be assembed in unicode and not utf8 encoded until they are ready to write().

14 years agoHandle IOStream.read_bytes(0) gracefully.
Ben Darnell [Wed, 29 Sep 2010 03:11:42 +0000 (20:11 -0700)] 
Handle IOStream.read_bytes(0) gracefully.

14 years agoMake AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
Ben Darnell [Wed, 29 Sep 2010 03:10:56 +0000 (20:10 -0700)] 
Make AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
is not truthy.

14 years agoRemove references to async_callback from documentation
Ben Darnell [Tue, 28 Sep 2010 22:46:21 +0000 (15:46 -0700)] 
Remove references to async_callback from documentation

14 years agoIn the select()-based IOLoop, always listen for reads so we can tell
Ben Darnell [Mon, 27 Sep 2010 21:08:56 +0000 (14:08 -0700)] 
In the select()-based IOLoop, always listen for reads so we can tell
when the other side closed the connection.

Closes #37.

14 years agoClose the IOStream when the remote connection is closed.
Ben Darnell [Mon, 27 Sep 2010 19:46:20 +0000 (12:46 -0700)] 
Close the IOStream when the remote connection is closed.

This was a regression introduced by http://github.com/facebook/tornado/commit/f6f7f83719a48083f3e5ed999e19c0ec67de9b9b

Closes #143.

14 years agoFactor port-selection logic out of AsyncHTTPTestCase so it can be used
Ben Darnell [Mon, 27 Sep 2010 19:04:43 +0000 (12:04 -0700)] 
Factor port-selection logic out of AsyncHTTPTestCase so it can be used
from lower-level tests

14 years agoMake StackContext more usable in libraries by reducing the need to
Ben Darnell [Fri, 24 Sep 2010 18:42:33 +0000 (11:42 -0700)] 
Make StackContext more usable in libraries by reducing the need to
explicitly use IOLoop.add_callback or NullContext.

This change also simplifies and codifies the ordering behavior of
StackContext:  When a wrapped callback is executed, the innermost
StackContexts are those that were active when the callback was
wrapped.  Additional StackContexts (possibly including other copies
of the same contexts) may be present in outer levels of the stack, but
since the role of most StackContexts is to catch exceptions this should
not have any effect.

Backwards compatibility note:  StackContexts that do something other than
catch exceptions may need to be modified to be reentrant.