]>
git.ipfire.org Git - thirdparty/tornado.git/log
Ben Darnell [Tue, 12 Oct 2010 00:24:11 +0000 (17:24 -0700)]
Reindent example in docstring, which apparently trips up emacs' indentation
detection.
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.
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.
Ben Darnell [Mon, 11 Oct 2010 21:39:38 +0000 (14:39 -0700)]
Make USE_SIMPLE_HTTPCLIENT work without pycurl installed.
Ben Darnell [Mon, 11 Oct 2010 21:16:52 +0000 (14:16 -0700)]
Add initial version of non-curl-based AsyncHTTPClient.
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.
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.
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
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().
Ben Darnell [Wed, 29 Sep 2010 03:11:42 +0000 (20:11 -0700)]
Handle IOStream.read_bytes(0) gracefully.
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.
Ben Darnell [Tue, 28 Sep 2010 22:46:21 +0000 (15:46 -0700)]
Remove references to async_callback from documentation
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.
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.
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
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.
Ben Darnell [Thu, 23 Sep 2010 16:37:32 +0000 (09:37 -0700)]
Update installation instructions in README.
Closes #142.
Ben Darnell [Tue, 21 Sep 2010 19:15:02 +0000 (12:15 -0700)]
Fix default_host redirect.
Closes #141.
Ben Darnell [Sat, 18 Sep 2010 20:22:30 +0000 (13:22 -0700)]
Fix improperly-renamed variable in set_blocking_signal_threshold
Ben Darnell [Fri, 17 Sep 2010 21:46:43 +0000 (14:46 -0700)]
Make xhtml_escape available in the template namespace under its own name
in addition to "escape".
Ben Darnell [Fri, 17 Sep 2010 21:45:45 +0000 (14:45 -0700)]
Move cookie-signing code from set_secure_cookie to a new method for non-cookie use cases
Ben Darnell [Fri, 17 Sep 2010 18:02:43 +0000 (11:02 -0700)]
Document the entire template namespace
Ben Darnell [Fri, 17 Sep 2010 00:14:31 +0000 (17:14 -0700)]
Generalize IOLoop.set_blocking_log_threshold by allowing user-specified
signal handlers (via a new set_blocking_signal_threshold method).
Also support a handler value of None to kill the process (SIG_DFL)
Ben Darnell [Thu, 16 Sep 2010 20:45:13 +0000 (13:45 -0700)]
Refactor IOStream reading logic to fix problems with SSL sockets.
Now reads from the socket until it would block. This ensures that we
see data in SSLSocket's internal buffers, which are otherwise invisible
to functions like select().
Added a test that makes a large POST request to an SSL server, which was
the scenario that originally exposed this bug.
Szabó Antal [Sun, 12 Sep 2010 22:32:39 +0000 (00:32 +0200)]
Fixed another two win32_support import
Szabó Antal [Sun, 12 Sep 2010 22:24:22 +0000 (00:24 +0200)]
Fixed win32_support import
Szabó Antal [Sun, 12 Sep 2010 21:58:31 +0000 (23:58 +0200)]
Added binary flag to _waker_reader and _waker_writer
Szabó Antal [Sun, 12 Sep 2010 21:34:38 +0000 (23:34 +0200)]
Replaced map() in web.py with for loop
Szabó Antal [Sun, 12 Sep 2010 21:22:30 +0000 (23:22 +0200)]
Changed e[0] to e.args[0]
Ben Darnell [Tue, 14 Sep 2010 17:42:56 +0000 (10:42 -0700)]
Update docs to mention requirement of pycurl 7.18.2.
Ben Darnell [Mon, 13 Sep 2010 20:41:14 +0000 (13:41 -0700)]
Merge remote branch 'fiam/master'
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.
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.
Ben Darnell [Mon, 13 Sep 2010 18:18:46 +0000 (11:18 -0700)]
Fix calls to getattr (which, unlike dict.get, does not default to None).
Reported in issue #137.
Ben Darnell [Thu, 9 Sep 2010 17:06:47 +0000 (10:06 -0700)]
Add download url to setup.py for pypi
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.
Ben Darnell [Wed, 8 Sep 2010 00:05:12 +0000 (17:05 -0700)]
Bump version number to 1.1
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).
Ben Darnell [Tue, 7 Sep 2010 23:01:22 +0000 (16:01 -0700)]
Disable SSL test on 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
Ben Darnell [Tue, 7 Sep 2010 22:19:21 +0000 (15:19 -0700)]
Fix error in comment
Ben Darnell [Mon, 6 Sep 2010 18:24:09 +0000 (11:24 -0700)]
Fix typo in websocket.py
Closes #133.
Ben Darnell [Mon, 6 Sep 2010 07:00:52 +0000 (00:00 -0700)]
Remove superfluous lambdas in tornado.escape.
Closes #132.
Ben Darnell [Sun, 5 Sep 2010 03:38:59 +0000 (20:38 -0700)]
Document why RequestHandler.write does not convert lists to JSON.
Ben Darnell [Sat, 4 Sep 2010 19:19:46 +0000 (12:19 -0700)]
Add more documentation for request.files.
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.
Ben Darnell [Wed, 1 Sep 2010 22:27:32 +0000 (15:27 -0700)]
Remove the statement that tornado has only been tested with firefox.
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.
Ben Darnell [Mon, 30 Aug 2010 19:18:21 +0000 (12:18 -0700)]
Update class docstring for HTTPServer.
Closes #123.
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.
Ben Darnell [Thu, 26 Aug 2010 18:52:41 +0000 (11:52 -0700)]
Fix reference to slice.indices.
Is this used anywhere?
Closes: #13.
Ben Darnell [Thu, 26 Aug 2010 18:40:49 +0000 (11:40 -0700)]
Document the limitations of multi-process mode.
Closes #65.
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.
Ben Darnell [Thu, 26 Aug 2010 18:09:56 +0000 (11:09 -0700)]
Set pycurl.NOSIGNAL when multiple threads are detected.
Closes #121.
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.
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.
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
Ben Darnell [Wed, 25 Aug 2010 22:34:21 +0000 (15:34 -0700)]
Add more documentation of overridable methods in RequestHandler
Ben Darnell [Wed, 25 Aug 2010 18:36:44 +0000 (11:36 -0700)]
Move AuthRedirectTest from httpserver_test to web_test where it belongs
Ben Darnell [Wed, 25 Aug 2010 18:33:09 +0000 (11:33 -0700)]
Add a test for HTTPServer's SSL support
Ben Darnell [Wed, 25 Aug 2010 18:32:10 +0000 (11:32 -0700)]
Don't swallow SSL errors - always reraise or return
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.
Ben Darnell [Thu, 19 Aug 2010 17:57:47 +0000 (13:57 -0400)]
Merge remote branch 'tomhsx/proxy-support'
Ben Darnell [Thu, 19 Aug 2010 17:52:09 +0000 (13:52 -0400)]
Add HTTPServer(..., xheaders=True) to the web documentation.
Ben Darnell [Thu, 19 Aug 2010 17:48:08 +0000 (13:48 -0400)]
Add a links section to the website
tomhsx [Mon, 16 Aug 2010 05:37:16 +0000 (01:37 -0400)]
Added proxy support to httpclient
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.
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.
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.
Ben Darnell [Fri, 13 Aug 2010 21:49:03 +0000 (14:49 -0700)]
Fix another link to 1.0.1
Ben Darnell [Fri, 13 Aug 2010 17:51:50 +0000 (10:51 -0700)]
Check in symlink to tornado package in website directory
Ben Darnell [Fri, 13 Aug 2010 17:50:37 +0000 (10:50 -0700)]
Update links to 1.0.1 release
Ben Darnell [Fri, 13 Aug 2010 17:19:26 +0000 (10:19 -0700)]
Test case for secure cookie change
Ben Darnell [Fri, 13 Aug 2010 17:18:28 +0000 (10:18 -0700)]
Check for far-future timestamps in secure cookies.
Ben Darnell [Fri, 13 Aug 2010 07:34:23 +0000 (00:34 -0700)]
Add future import to fix tests on 2.5
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.
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.
Ben Darnell [Tue, 10 Aug 2010 20:57:32 +0000 (13:57 -0700)]
Reindent everything to 4 spaces.
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.
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.
Ben Darnell [Mon, 9 Aug 2010 21:12:33 +0000 (14:12 -0700)]
Add a simple main function to httpclient.py for manual testing
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.
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.
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
Ben Darnell [Thu, 5 Aug 2010 01:47:42 +0000 (18:47 -0700)]
Use the right IOLoop in AsyncHTTPClient's PeriodicCallback
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.
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
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).
Ben Darnell [Wed, 4 Aug 2010 21:00:34 +0000 (14:00 -0700)]
Fix a typo in docstring
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.
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.
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).
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.
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).
Ben Darnell [Fri, 30 Jul 2010 21:21:37 +0000 (14:21 -0700)]
Docstring updates
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.
Ben Darnell [Fri, 30 Jul 2010 02:01:13 +0000 (19:01 -0700)]
Add __future__ import for python2.5 compatibility
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.
Ben Darnell [Fri, 30 Jul 2010 01:53:18 +0000 (18:53 -0700)]
Add a test framework for IOLoop-based async code
Ben Darnell [Fri, 30 Jul 2010 00:03:40 +0000 (17:03 -0700)]
Make all internal imports of tornado modules absolute