]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoWhen forking multiple processes, properly initialize the random seed 138/head
Alberto García Hierro [Mon, 13 Sep 2010 18:10:23 +0000 (20:10 +0200)] 
When forking multiple processes, properly initialize the random seed

Avoid seeding the random module with the same value in all processes.
If available, use the same method used by random.py, otherwise
generate a seed using the current time in milliseconds and the pid.

14 years agoAvoid raising a KeyError when there's no session expiration date
Alberto García Hierro [Mon, 13 Sep 2010 18:09:40 +0000 (20:09 +0200)] 
Avoid raising a KeyError when there's no session expiration date

It happens when the token is requested with the 'offline_access'
extended permission.

14 years agoAdd download url to setup.py for pypi
Ben Darnell [Thu, 9 Sep 2010 17:06:47 +0000 (10:06 -0700)] 
Add download url to setup.py for pypi

14 years agoCheck self._running before rescheduling a PeriodicCallback, so stop() can
Ben Darnell [Wed, 8 Sep 2010 22:06:21 +0000 (15:06 -0700)] 
Check self._running before rescheduling a PeriodicCallback, so stop() can
be called from inside the callback.

Closes #135.

14 years agoBump version number to 1.1 v1.1.0
Ben Darnell [Wed, 8 Sep 2010 00:05:12 +0000 (17:05 -0700)] 
Bump version number to 1.1

14 years agoDisable SSL test on versions of libcurl with blocking SSL handshakes.
Ben Darnell [Wed, 8 Sep 2010 00:02:50 +0000 (17:02 -0700)] 
Disable SSL test on versions of libcurl with blocking SSL handshakes.
(using gnutls instead of openssl and libcurl < 7.21.0).

14 years agoDisable SSL test on python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:22 +0000 (16:01 -0700)] 
Disable SSL test on python 2.5

14 years agoUse the older name for threading.activeCount for compatibility with python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:04 +0000 (16:01 -0700)] 
Use the older name for threading.activeCount for compatibility with python 2.5

14 years agoFix error in comment
Ben Darnell [Tue, 7 Sep 2010 22:19:21 +0000 (15:19 -0700)] 
Fix error in comment

14 years agoFix typo in websocket.py
Ben Darnell [Mon, 6 Sep 2010 18:24:09 +0000 (11:24 -0700)] 
Fix typo in websocket.py

Closes #133.

14 years agoRemove superfluous lambdas in tornado.escape.
Ben Darnell [Mon, 6 Sep 2010 07:00:52 +0000 (00:00 -0700)] 
Remove superfluous lambdas in tornado.escape.

Closes #132.

14 years agoDocument why RequestHandler.write does not convert lists to JSON.
Ben Darnell [Sun, 5 Sep 2010 03:38:59 +0000 (20:38 -0700)] 
Document why RequestHandler.write does not convert lists to JSON.

14 years agoAdd more documentation for request.files.
Ben Darnell [Sat, 4 Sep 2010 19:19:46 +0000 (12:19 -0700)] 
Add more documentation for request.files.

14 years agoauth.py updates for OAuth 1.0a and 2.0.
Joe Bowman [Tue, 31 Aug 2010 15:38:06 +0000 (11:38 -0400)] 
auth.py updates for OAuth 1.0a and 2.0.

OAuthMixin now supports both 1.0a and 1.0 (defaults to 1.0a).  TwitterMixin
and GoogleMixin now use 1.0a, FriendfeedMixin remains at 1.0.  This adds
support for the callback_uri parameter to TwitterMixin.

New classes OAuth2Mixin and FacebookGraphMixin are introduced for the new
Facebook APIs.

Backwards compatibility notes:

Pending authorizations begun prior to this change will not be able to
be completed after it (tokens issued under prior versions of this code
will still work; this warning applies only to users who have started
but not yet completed their initial authorizations).

If you have used OAuthMixin directly (not one of the subclasses in this
module) to access a service that does not support OAuth 1.0a, set
_OAUTH_VERSION = "1.0" in your subclass.

Pull requests:
http://github.com/facebook/tornado/pull/126
http://github.com/facebook/tornado/pull/128
http://github.com/facebook/tornado/pull/130

Written by Joe Bowman, rebased from http://github.com/joerussbowman/tornado/commit/1572ecc6726f1ab33d2153798af0f13ad9e75ab6 by Ben Darnell.

14 years agoRemove the statement that tornado has only been tested with firefox.
Ben Darnell [Wed, 1 Sep 2010 22:27:32 +0000 (15:27 -0700)] 
Remove the statement that tornado has only been tested with firefox.

14 years agoRemove __del__ method from HTTPResponse. Closing cStringIO objects isn't
Ben Darnell [Wed, 1 Sep 2010 22:16:57 +0000 (15:16 -0700)] 
Remove __del__ method from HTTPResponse.  Closing cStringIO objects isn't
really necessary, and the presence of a __del__ method prevents python's
GC from breaking cyclical references (which happen on errors as HTTPError
and HTTPResponse refer to each other).

Closes #125.

14 years agoUpdate class docstring for HTTPServer.
Ben Darnell [Mon, 30 Aug 2010 19:18:21 +0000 (12:18 -0700)] 
Update class docstring for HTTPServer.

Closes #123.

14 years agoadding support for http method OPTIONS used by firefox, safari, for cross domain
Aaron Raddon [Tue, 22 Dec 2009 18:40:59 +0000 (10:40 -0800)] 
adding support for http method OPTIONS used by firefox, safari, for cross domain

Closes #46.

14 years agoFix reference to slice.indices.
Ben Darnell [Thu, 26 Aug 2010 18:52:41 +0000 (11:52 -0700)] 
Fix reference to slice.indices.

Is this used anywhere?

Closes: #13.
14 years agoDocument the limitations of multi-process mode.
Ben Darnell [Thu, 26 Aug 2010 18:40:49 +0000 (11:40 -0700)] 
Document the limitations of multi-process mode.

Closes #65.

14 years agoDocument the fact that add_handlers should only be called once for each
Ben Darnell [Thu, 26 Aug 2010 18:31:54 +0000 (11:31 -0700)] 
Document the fact that add_handlers should only be called once for each
host_pattern.

14 years agoSet pycurl.NOSIGNAL when multiple threads are detected.
Ben Darnell [Thu, 26 Aug 2010 18:09:56 +0000 (11:09 -0700)] 
Set pycurl.NOSIGNAL when multiple threads are detected.

Closes #121.

14 years agoSet PeriodicCallback._running to True in start instead of __init__
Ben Darnell [Thu, 26 Aug 2010 00:17:44 +0000 (17:17 -0700)] 
Set PeriodicCallback._running to True in start instead of __init__

Closes #72.

14 years agoAdd a tornado.version variable, and use it anywhere we use the current
Ben Darnell [Wed, 25 Aug 2010 23:54:02 +0000 (16:54 -0700)] 
Add a tornado.version variable, and use it anywhere we use the current
tornado version to produce a Server: header.

Closes #22.

14 years agoCheck in Jacob Kristhammar's updated websocket implementation.
Ben Darnell [Wed, 25 Aug 2010 23:34:41 +0000 (16:34 -0700)] 
Check in Jacob Kristhammar's updated websocket implementation.

http://groups.google.com/group/python-tornado/browse_thread/thread/065823d0c6593b85

14 years agoAdd more documentation of overridable methods in RequestHandler
Ben Darnell [Wed, 25 Aug 2010 22:34:21 +0000 (15:34 -0700)] 
Add more documentation of overridable methods in RequestHandler

14 years agoMove AuthRedirectTest from httpserver_test to web_test where it belongs
Ben Darnell [Wed, 25 Aug 2010 18:36:44 +0000 (11:36 -0700)] 
Move AuthRedirectTest from httpserver_test to web_test where it belongs

14 years agoAdd a test for HTTPServer's SSL support
Ben Darnell [Wed, 25 Aug 2010 18:33:09 +0000 (11:33 -0700)] 
Add a test for HTTPServer's SSL support

14 years agoDon't swallow SSL errors - always reraise or return
Ben Darnell [Wed, 25 Aug 2010 18:32:10 +0000 (11:32 -0700)] 
Don't swallow SSL errors - always reraise or return

14 years agoMake the SSL handshake non-blocking.
Ben Darnell [Thu, 19 Aug 2010 18:25:15 +0000 (14:25 -0400)] 
Make the SSL handshake non-blocking.

Based on work by mgenti.  See
http://github.com/mgenti/tornado/commit/197e88e62f1970b65a3807ac37160194fab7d496
and its ancestors.

14 years agoMerge remote branch 'tomhsx/proxy-support'
Ben Darnell [Thu, 19 Aug 2010 17:57:47 +0000 (13:57 -0400)] 
Merge remote branch 'tomhsx/proxy-support'

14 years agoAdd HTTPServer(..., xheaders=True) to the web documentation.
Ben Darnell [Thu, 19 Aug 2010 17:52:09 +0000 (13:52 -0400)] 
Add HTTPServer(..., xheaders=True) to the web documentation.

14 years agoAdd a links section to the website
Ben Darnell [Thu, 19 Aug 2010 17:48:08 +0000 (13:48 -0400)] 
Add a links section to the website

14 years agoAdded proxy support to httpclient
tomhsx [Mon, 16 Aug 2010 05:37:16 +0000 (01:37 -0400)] 
Added proxy support to httpclient

14 years agoSuppress tornado's default logging setup if there is any existing logging
Ben Darnell [Mon, 16 Aug 2010 01:17:42 +0000 (18:17 -0700)] 
Suppress tornado's default logging setup if there is any existing logging
config, not just --log_file_prefix.

14 years agoIn LogTrapTestCase, leave everything alone rather than throwing an exception
Ben Darnell [Mon, 16 Aug 2010 01:11:48 +0000 (18:11 -0700)] 
In LogTrapTestCase, leave everything alone rather than throwing an exception
if the logging config is not as expected.

14 years agoInitialize member variables in AsyncTestCase.__init__ instead of setUp
Ben Darnell [Mon, 16 Aug 2010 01:04:34 +0000 (18:04 -0700)] 
Initialize member variables in AsyncTestCase.__init__ instead of setUp
to avoid masking the real error in _stack_context() if run() throws an
exception.

14 years agoFix another link to 1.0.1
Ben Darnell [Fri, 13 Aug 2010 21:49:03 +0000 (14:49 -0700)] 
Fix another link to 1.0.1

14 years agoCheck in symlink to tornado package in website directory
Ben Darnell [Fri, 13 Aug 2010 17:51:50 +0000 (10:51 -0700)] 
Check in symlink to tornado package in website directory

14 years agoUpdate links to 1.0.1 release
Ben Darnell [Fri, 13 Aug 2010 17:50:37 +0000 (10:50 -0700)] 
Update links to 1.0.1 release

14 years agoTest case for secure cookie change
Ben Darnell [Fri, 13 Aug 2010 17:19:26 +0000 (10:19 -0700)] 
Test case for secure cookie change

14 years agoCheck for far-future timestamps in secure cookies.
Ben Darnell [Fri, 13 Aug 2010 17:18:28 +0000 (10:18 -0700)] 
Check for far-future timestamps in secure cookies.

14 years agoAdd future import to fix tests on 2.5
Ben Darnell [Fri, 13 Aug 2010 07:34:23 +0000 (00:34 -0700)] 
Add future import to fix tests on 2.5

15 years agoAdd a mention of on_connection_close to the html docs. Add a
Ben Darnell [Wed, 11 Aug 2010 18:34:40 +0000 (11:34 -0700)] 
Add a mention of on_connection_close to the html docs.  Add a
warning about proxies keeping connections open.

15 years agoRemove the ability to pre-bind parameters in stack_context.wrap.
Ben Darnell [Tue, 10 Aug 2010 21:00:18 +0000 (14:00 -0700)] 
Remove the ability to pre-bind parameters in stack_context.wrap.

This functionality was incorrect and unused, and unlike async_callback,
I don't think the implicit binding is a good fit for this API.

15 years agoReindent everything to 4 spaces.
Ben Darnell [Tue, 10 Aug 2010 20:57:32 +0000 (13:57 -0700)] 
Reindent everything to 4 spaces.

15 years agoStackContext should not re-wrap previously-wrapped callbacks.
Ben Darnell [Tue, 10 Aug 2010 20:51:53 +0000 (13:51 -0700)] 
StackContext should not re-wrap previously-wrapped callbacks.

This allows for library code to "pop" back up to a previous version of the
stack.

15 years agoBe less picky about line endings in headers in httpclient.
Ben Darnell [Mon, 9 Aug 2010 21:33:32 +0000 (14:33 -0700)] 
Be less picky about line endings in headers in httpclient.

HTTP requires that lines end with \r\n, but some buggy servers (including
news.ycombinator.com) just use \n.  Libcurl tolerates this and sends the
line as-is to the header callback, so we need to be prepared to handle
either form.

15 years agoAdd a simple main function to httpclient.py for manual testing
Ben Darnell [Mon, 9 Aug 2010 21:12:33 +0000 (14:12 -0700)] 
Add a simple main function to httpclient.py for manual testing

15 years agoThe periodic call to multi_socket_all needs to be followed by
Ben Darnell [Mon, 9 Aug 2010 21:01:48 +0000 (14:01 -0700)] 
The periodic call to multi_socket_all needs to be followed by
 _finish_pending_request or else those requests won't be finished until
after the next one is started.

15 years agoRecord more detailed timing information from AsyncHTTPClient, and make
Ben Darnell [Fri, 6 Aug 2010 23:09:04 +0000 (16:09 -0700)] 
Record more detailed timing information from AsyncHTTPClient, and make
it available as HTTPResponse.time_info.

15 years agoWhen login_url is absolute, use an absolute url for the next redirect.
Ben Darnell [Fri, 6 Aug 2010 20:12:14 +0000 (13:12 -0700)] 
When login_url is absolute, use an absolute url for the next redirect.

Closes: GH-119
15 years agoUse the right IOLoop in AsyncHTTPClient's PeriodicCallback
Ben Darnell [Thu, 5 Aug 2010 01:47:42 +0000 (18:47 -0700)] 
Use the right IOLoop in AsyncHTTPClient's PeriodicCallback

15 years agoUse POST instead of GET for OpenID check_authentication.
Ben Darnell [Thu, 5 Aug 2010 00:42:07 +0000 (17:42 -0700)] 
Use POST instead of GET for OpenID check_authentication.

Google apparently doesn't check for this, but other OpenID providers do.

15 years agoSuppress libcurl's magic "Expect: 100-continue" behavior.
Ben Darnell [Thu, 5 Aug 2010 00:40:24 +0000 (17:40 -0700)] 
Suppress libcurl's magic "Expect: 100-continue" behavior.

This was motivated by the discovery of bug
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3039744&group_id=976

15 years agoAdd a brute-force workaround for the class of libcurl bugs that cause
Ben Darnell [Thu, 5 Aug 2010 00:30:20 +0000 (17:30 -0700)] 
Add a brute-force workaround for the class of libcurl bugs that cause
file descriptors or timeouts to get silently dropped.  (the old
fdset/perform implementation of AsycnHTTPClient had a similar workaround).

15 years agoFix a typo in docstring
Ben Darnell [Wed, 4 Aug 2010 21:00:34 +0000 (14:00 -0700)] 
Fix a typo in docstring

15 years agoParse form bodies on PUT as well as POST.
Ben Darnell [Wed, 4 Aug 2010 19:02:05 +0000 (12:02 -0700)] 
Parse form bodies on PUT as well as POST.

HTML5 adds support for PUT and DELETE in forms, so x-www-form-urlencoded
PUT bodies are now possible.

15 years agoWork around the "MySQL server has gone away" issue by closing and reopening
Ben Darnell [Tue, 3 Aug 2010 21:35:45 +0000 (14:35 -0700)] 
Work around the "MySQL server has gone away" issue by closing and reopening
connections that have been idle for too long.

15 years agoUse the more portable multiprocessing.cpu_count() to detect the number
Ben Darnell [Tue, 3 Aug 2010 21:21:24 +0000 (14:21 -0700)] 
Use the more portable multiprocessing.cpu_count() to detect the number
of cpus where available (python 2.6).

15 years agoAdd a workaround for missing multi.socket_action on older versions of pycurl.
Ben Darnell [Sat, 31 Jul 2010 00:22:53 +0000 (17:22 -0700)] 
Add a workaround for missing multi.socket_action on older versions of pycurl.

15 years agoOnly catch pycurl.error, not all Exceptions around a call to multi.socket_action.
Ben Darnell [Fri, 30 Jul 2010 23:47:13 +0000 (16:47 -0700)] 
Only catch pycurl.error, not all Exceptions around a call to multi.socket_action.

This was hiding an AttributeError being thrown on older versions of pycurl
(which did not expose the socket_action method).

15 years agoDocstring updates
Ben Darnell [Fri, 30 Jul 2010 21:21:37 +0000 (14:21 -0700)] 
Docstring updates

15 years agoFix a StackContext-related bug that was causing exceptions in callbacks
Ben Darnell [Fri, 30 Jul 2010 02:08:30 +0000 (19:08 -0700)] 
Fix a StackContext-related bug that was causing exceptions in callbacks
to result in timeouts instead of making wait() re-throw the exception.
Add a test to verify that this works.

15 years agoAdd __future__ import for python2.5 compatibility
Ben Darnell [Fri, 30 Jul 2010 02:01:13 +0000 (19:01 -0700)] 
Add __future__ import for python2.5 compatibility

15 years agoUpdate test_ioloop to use AsyncTestCase. Rename it to ioloop_test and
Ben Darnell [Fri, 30 Jul 2010 02:00:06 +0000 (19:00 -0700)] 
Update test_ioloop to use AsyncTestCase.  Rename it to ioloop_test and
make other stylistic changes for consistency.

15 years agoAdd a test framework for IOLoop-based async code
Ben Darnell [Fri, 30 Jul 2010 01:53:18 +0000 (18:53 -0700)] 
Add a test framework for IOLoop-based async code

15 years agoMake all internal imports of tornado modules absolute
Ben Darnell [Fri, 30 Jul 2010 00:03:40 +0000 (17:03 -0700)] 
Make all internal imports of tornado modules absolute

15 years agoAdd an initialize() method to RequestHandler for use by subclasses.
Ben Darnell [Mon, 26 Jul 2010 19:04:00 +0000 (12:04 -0700)] 
Add an initialize() method to RequestHandler for use by subclasses.

This is simpler than overriding __init__ since it doesn't require
knowledge of the application and request arguments that must be
passed through to the superclass's __init__.

15 years agoRemove unused transforms parameter to RequestHandler.__init__.
Ben Darnell [Mon, 26 Jul 2010 18:49:05 +0000 (11:49 -0700)] 
Remove unused transforms parameter to RequestHandler.__init__.
Transforms are actually passed in via _execute.

15 years agoIntroduce StackContext, a way to automatically manage exception
Ben Darnell [Fri, 23 Jul 2010 19:35:08 +0000 (12:35 -0700)] 
Introduce StackContext, a way to automatically manage exception
handling and other stack-related state for asynchronous callbacks.
This means that it is no longer necessary to wrap everything
in RequestHandler.async_callback.

15 years agoRemove the old AsyncHTTPClient (fdset) and make AsyncHTTPClient2
Ben Darnell [Fri, 23 Jul 2010 18:12:56 +0000 (11:12 -0700)] 
Remove the old AsyncHTTPClient (fdset) and make AsyncHTTPClient2
(socket_action) the standard.

15 years agoSet version number to 1.0 v1.0.0
Ben Darnell [Thu, 22 Jul 2010 22:15:37 +0000 (15:15 -0700)] 
Set version number to 1.0

15 years agoRemove old release tarballs and redirect previous urls to github
Ben Darnell [Thu, 22 Jul 2010 23:50:59 +0000 (16:50 -0700)] 
Remove old release tarballs and redirect previous urls to github

15 years agoMove download links to github
Ben Darnell [Thu, 22 Jul 2010 22:13:25 +0000 (15:13 -0700)] 
Move download links to github

15 years agoRemove websocket.py. The websocket protocol has changed in
Ben Darnell [Thu, 22 Jul 2010 21:29:07 +0000 (14:29 -0700)] 
Remove websocket.py.  The websocket protocol has changed in
incompatible ways (and is still not yet final), so the version
implemented in this module is not compatible with current
browsers.  This module may be reintroduced in the future when
we have an implementation of the new protocol.

15 years agoUpdate installation instructions.
Ben Darnell [Thu, 22 Jul 2010 20:04:10 +0000 (13:04 -0700)] 
Update installation instructions.

15 years agoAccept None (i.e. unmatched optional groups) when extracting parameters from
Ben Darnell [Tue, 20 Jul 2010 17:25:25 +0000 (10:25 -0700)] 
Accept None (i.e. unmatched optional groups) when extracting parameters from
the path.

http://github.com/facebook/tornado/issues/issue/115

15 years agoWhen no json library is found, don't throw an exception unless
Ben Darnell [Tue, 20 Jul 2010 02:39:42 +0000 (19:39 -0700)] 
When no json library is found, don't throw an exception unless
json functionality is used, to make the simplejson dependency optional
for python 2.5 users.

15 years agoCheck for EINTR in a more flexible way for compatibility with older pythons
Ben Darnell [Mon, 19 Jul 2010 20:09:28 +0000 (13:09 -0700)] 
Check for EINTR in a more flexible way for compatibility with older pythons
and poll implementations.

Original commit:
http://github.com/eklitzke/tornado/commit/31c33737c5534f21a99371bb21e02cd4791f9010

15 years agoFix typo in support for multiple ui_method/ui_module containers
Ben Darnell [Thu, 15 Jul 2010 01:12:16 +0000 (18:12 -0700)] 
Fix typo in support for multiple ui_method/ui_module containers

15 years agoBetter timeout handling in AsyncHTTPClient2. Tornado and libcurl may
Ben Darnell [Wed, 14 Jul 2010 23:31:22 +0000 (16:31 -0700)] 
Better timeout handling in AsyncHTTPClient2.  Tornado and libcurl may
use different clock functions, which can cause timeouts to be delayed
(in some cases until the next fetch is started).  This change
resynchronizes the schedule after each timeout call.

15 years agoFix small bug in database set up.
David Novakovic [Wed, 14 Jul 2010 11:00:57 +0000 (21:00 +1000)] 
Fix small bug in database set up.

15 years agoMake iteration over sql fields clearer
Robert Buchholz [Tue, 13 Jul 2010 08:28:52 +0000 (10:28 +0200)] 
Make iteration over sql fields clearer

15 years agoRemove unused imports and variables
Robert Buchholz [Tue, 13 Jul 2010 08:26:01 +0000 (10:26 +0200)] 
Remove unused imports and variables

15 years agoIn AsyncHTTPClient2, disable IPv6 for versions of libcurl with the
Ben Darnell [Sat, 10 Jul 2010 01:15:12 +0000 (18:15 -0700)] 
In AsyncHTTPClient2, disable IPv6 for versions of libcurl with the
socket-reopening bug (i.e. <= 7.21.0).  (this can be overridden if needed
with a prepare_curl_callback)

15 years agoUnquote percent escapes in captured groups in the path component of the URI,
Ben Darnell [Fri, 9 Jul 2010 20:07:43 +0000 (13:07 -0700)] 
Unquote percent escapes in captured groups in the path component of the URI,
to be more consistent with our handling of query parameters.

This change is slightly backwards-incompatible:  applications that have
already added an unquote() call on arguments to RequestHandler.get/post
will need to remove them.

This change replaces an earlier (reverted) commit:
http://github.com/facebook/tornado/commit/7b80c2f4db226d6fa3a7f3dfa59277da1d642f91

15 years agoRevert "Parse percent escapes in the path component of the uri, to be more"
Ben Darnell [Fri, 9 Jul 2010 19:57:01 +0000 (12:57 -0700)] 
Revert "Parse percent escapes in the path component of the uri, to be more"

This reverts commit 7b80c2f4db226d6fa3a7f3dfa59277da1d642f91.

URI spec requires that '/' and '%2F' be distinguishable, so it's incorrect
to escape at this level.  The next commit will instead unquote captured
groups before passing them to get()/post() in web.py

15 years agoParse percent escapes in the path component of the uri, to be more
Ben Darnell [Fri, 9 Jul 2010 01:27:43 +0000 (18:27 -0700)] 
Parse percent escapes in the path component of the uri, to be more
consistent with our handling of query parameters (especially important
when capturing groups are used in the URLSpec regex).

This change is slightly backwards-incompatible:  applications that have
already added an unquote() call on arguments to RequestHandler.get/post
or use percent escapes in URLSpec patterns will need to remove them.

15 years agoConsolidate the various HTTP header dictionary classes into one,
Ben Darnell [Fri, 9 Jul 2010 00:06:03 +0000 (17:06 -0700)] 
Consolidate the various HTTP header dictionary classes into one,
which includes better handling of headers with repeated values
(e.g. Set-Cookie)

15 years agoDisable preforking by default in HTTPServer.start().
Ben Darnell [Thu, 8 Jul 2010 22:52:44 +0000 (15:52 -0700)] 
Disable preforking by default in HTTPServer.start().

This makes "server.listen(port)" and "server.bind(port);
server.start()" equivalent.

15 years agoUTF8-encode more user-supplied strings in httpclient (headers and user-agent)
Ben Darnell [Mon, 28 Jun 2010 16:52:46 +0000 (09:52 -0700)] 
UTF8-encode more user-supplied strings in httpclient (headers and user-agent)

15 years agoUpdate the set of active file descriptors immediately after calling perform
Ben Darnell [Sat, 26 Jun 2010 23:00:26 +0000 (16:00 -0700)] 
Update the set of active file descriptors immediately after calling perform
instead of after running user callbacks, since those callbacks might have
started using file descriptors that were closed by curl in perform().

Thanks to David Novakovic for the fix.  Adapted from
http://github.com/dpnova/tornado/commit/6df99e948e0832c60966f7c34190de87af87ffc5

15 years agoInclude the HTTPResponse object as an attribute of HTTPError
Ben Darnell [Sat, 26 Jun 2010 22:16:15 +0000 (15:16 -0700)] 
Include the HTTPResponse object as an attribute of HTTPError

15 years agoRemove unused "overwrite" argument to options.parse_config_file
Ben Darnell [Thu, 24 Jun 2010 01:01:30 +0000 (18:01 -0700)] 
Remove unused "overwrite" argument to options.parse_config_file

15 years agoFix typo in comment
Ben Darnell [Mon, 21 Jun 2010 16:29:27 +0000 (09:29 -0700)] 
Fix typo in comment

15 years agoAdd a second implementation of AsyncHTTPClient, using a new libcurl api.
Ben Darnell [Sun, 20 Jun 2010 02:38:02 +0000 (19:38 -0700)] 
Add a second implementation of AsyncHTTPClient, using a new libcurl api.

Adapted from Jacob Kristhammar's work:
http://github.com/sris/tornado/blob/master/tornado/httpclient2.py

15 years agoClose wsgi responses correctly - the close method, if present, will
Ben Darnell [Fri, 18 Jun 2010 22:59:19 +0000 (15:59 -0700)] 
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.

15 years agoIn the libcurl file descriptor limit hack, log to both stderr and
Ben Darnell [Thu, 10 Jun 2010 21:49:57 +0000 (14:49 -0700)] 
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.

15 years agoCatch and log exceptions from user callbacks in AsyncHTTPClient.
Ben Darnell [Tue, 8 Jun 2010 18:48:43 +0000 (11:48 -0700)] 
Catch and log exceptions from user callbacks in AsyncHTTPClient.