]>
git.ipfire.org Git - thirdparty/tornado.git/log
Claudio Freire [Tue, 19 Nov 2013 17:24:48 +0000 (14:24 -0300)]
Speed up gen.corouting when yielding done Futures
Ben Darnell [Mon, 4 Nov 2013 13:33:40 +0000 (08:33 -0500)]
Document the HTTPResponse.effective_url attribute.
Ben Darnell [Thu, 7 Nov 2013 20:11:48 +0000 (15:11 -0500)]
Update next-release notes and document the asyncio module.
Ben Darnell [Wed, 6 Nov 2013 21:44:15 +0000 (16:44 -0500)]
Clean up some uncollectable garbage in the test suite.
Ben Darnell [Wed, 6 Nov 2013 19:57:31 +0000 (14:57 -0500)]
Document the fact that WebSocketClientConnection should not be used directly.
Closes #929.
Ben Darnell [Wed, 6 Nov 2013 19:16:01 +0000 (14:16 -0500)]
Catch exceptions from parse_qs_bytes in POST bodies and log them.
This is consistent with error handling for multipart/form-data.
parse_qs is very liberal, but the conversion to unicode
on python 3 may fail. This is most common for binary data sent from
clients where x-www-form-urlencoded is the default, which is not
actually intended to be interpreted as arguments.
Closes #921.
Ben Darnell [Wed, 6 Nov 2013 16:53:23 +0000 (11:53 -0500)]
Fix speedups.c when compiled with gcc instead of clang.
Ben Darnell [Wed, 6 Nov 2013 16:53:00 +0000 (11:53 -0500)]
Point Ubuntu 12.04 Vagrant file to a readily-available base image.
Ben Darnell [Tue, 5 Nov 2013 22:58:45 +0000 (17:58 -0500)]
Make the C extension optional.
Ben Darnell [Tue, 5 Nov 2013 22:39:03 +0000 (17:39 -0500)]
Replace cython-based extension module with a hand-written one.
This avoids the complexity of ensuring that cython is installed
at build time.
Ben Darnell [Tue, 5 Nov 2013 20:53:51 +0000 (15:53 -0500)]
Add backports.ssl_match_hostname dependency in place of our copy.
This function has changed recently and it makes more sense to stop
maintaining a separate copy, even though it does introduce our first
required dependency.
bdarnell [Mon, 4 Nov 2013 20:23:26 +0000 (12:23 -0800)]
Merge pull request #928 from ajdavis/better-assertion-in-httpclient
Better AsyncHTTPClient error for GET with body or POST without one. Fixes #927.
Ben Darnell [Mon, 4 Nov 2013 20:19:32 +0000 (15:19 -0500)]
simple_httpclient: Start the connection timeout before the Resolver call.
Timeouts were previously unenforced during DNS resolution.
A. Jesse Jiryu Davis [Mon, 4 Nov 2013 19:57:05 +0000 (14:57 -0500)]
Better AsyncHTTPClient error for GET with body or POST without one.
bdarnell [Mon, 4 Nov 2013 19:42:09 +0000 (11:42 -0800)]
Merge pull request #926 from liangsun/master
Add `name` parameter for URLSpec in tuple/list format.
Liang Sun [Mon, 4 Nov 2013 10:03:33 +0000 (18:03 +0800)]
Add name parameter for URLSpec in tuple/list format.
Ben Darnell [Mon, 4 Nov 2013 02:10:56 +0000 (21:10 -0500)]
Update next-release notes.
Ben Darnell [Sun, 3 Nov 2013 21:20:01 +0000 (16:20 -0500)]
Fix --debug_gc option on python 3.
Ben Darnell [Sun, 3 Nov 2013 21:18:40 +0000 (16:18 -0500)]
Don't make the request if it timed out in the queue.
Use IOLoop time instead of request.start_time (which is wall time).
Misc test fixes.
Ben Darnell [Sun, 3 Nov 2013 20:07:34 +0000 (15:07 -0500)]
Merge remote-tracking branch 'codeb2cc/async-request-timeout' into merge
Ben Darnell [Sun, 3 Nov 2013 20:02:24 +0000 (15:02 -0500)]
Rearrange newly-added optional arguments for backwards compatibility.
Ben Darnell [Sun, 3 Nov 2013 19:37:43 +0000 (14:37 -0500)]
Merge remote-tracking branch 'sclm/GoogleOAuth2' into merge
Conflicts:
docs/releases/next.rst
Ben Darnell [Sun, 3 Nov 2013 19:01:41 +0000 (14:01 -0500)]
Add test for the websocket connection-refused fix.
bdarnell [Sun, 3 Nov 2013 18:52:31 +0000 (10:52 -0800)]
Merge pull request #910 from Caligatio/patch-1
Fixed WebSocketClient connections not closing on initial connection failure
Ben Darnell [Sun, 3 Nov 2013 18:43:09 +0000 (13:43 -0500)]
Change hard-coded SSL protocol version for Python 2.6 to TLSv1.
The compatibility advantage of SSLv3 was always small, and it's probably
better to use TLSv1 than SSLv3 now.
Closes #911.
Ben Darnell [Sun, 3 Nov 2013 18:22:17 +0000 (13:22 -0500)]
Fix some cases where curl_httpclient options could leak to subsequent requests.
Document the remaining cases which cannot cleanly be set back to their default
values.
Uncovered by #912.
Ben Darnell [Sat, 2 Nov 2013 20:46:32 +0000 (16:46 -0400)]
Add generated speedups.c to .gitignore.
Ben Darnell [Sat, 2 Nov 2013 19:55:45 +0000 (15:55 -0400)]
Add test for specifying handlers by name.
bdarnell [Sat, 2 Nov 2013 19:10:35 +0000 (12:10 -0700)]
Merge pull request #925 from mengzhuo/master
unify web.handlers
Meng Zhuo [Fri, 1 Nov 2013 02:11:31 +0000 (10:11 +0800)]
unify web.handlers
Ben Darnell [Sun, 27 Oct 2013 02:47:42 +0000 (22:47 -0400)]
Remvoe auto2to3 exclusion rules.
auto2to3 is no longer a part of the Tornado development process,
and the MANIFEST exclusion rule just results in scary-looking warnings
when installing.
Ben Darnell [Sun, 27 Oct 2013 02:42:26 +0000 (22:42 -0400)]
Add more tests for the cython websocket mask function
Ben Darnell [Fri, 25 Oct 2013 19:46:13 +0000 (15:46 -0400)]
Add cython-based speedup for websocket mask function.
This optimization is currently activated only if Cython is present
when Tornado is installed.
Ben Darnell [Sun, 27 Oct 2013 00:00:27 +0000 (20:00 -0400)]
Add a tox config for the py33 backport of asyncio.
Update some old comments.
Ben Darnell [Fri, 18 Oct 2013 20:07:11 +0000 (16:07 -0400)]
Split AsyncIOLoop to make it possible to use the global asyncio event loop.
AsyncIOLoop works more like Tornado's native IOLoop so it's better for
our tests, but AsyncIOMainLoop is more appropriate for most real-world
usage.
Ben Darnell [Fri, 18 Oct 2013 19:46:55 +0000 (15:46 -0400)]
Initial version of asyncio/tulip-based IOLoop.
Currently always creates a new asyncio event loop instead of using
an existing one.
Ben Darnell [Fri, 18 Oct 2013 15:49:25 +0000 (11:49 -0400)]
Add close method to websocket client; fix socket leaks in websocket_test.
These leaks are detected only in python 3.4 thanks to its improved
generator GC.
Ben Darnell [Sat, 26 Oct 2013 23:43:48 +0000 (19:43 -0400)]
Disable test_subprocess on LayeredTwistedIOLoop.
This test fails occasionally in this configuration (but strangely, the
other subprocess tests work). I haven't been able to track it down
so just disable it for now to prevent spurious travis-ci errors.
Ben Darnell [Sat, 26 Oct 2013 22:27:25 +0000 (18:27 -0400)]
Check for the existence of sys.stderr.isatty before calling it.
Only the `write` method is guaranteed to exist on sys.stderr and sys.stdout.
Closes #920.
Ben Darnell [Sun, 20 Oct 2013 19:26:27 +0000 (15:26 -0400)]
Return the correct type when yielding an empty dict.
bdarnell [Sun, 20 Oct 2013 19:10:56 +0000 (12:10 -0700)]
Merge pull request #915 from anton-ryzhov/yield_dict
Yielding dicts from coroutine
Anton Ryzhov [Thu, 17 Oct 2013 15:44:09 +0000 (19:44 +0400)]
Documentation for yielding dicts
Anton Ryzhov [Thu, 17 Oct 2013 15:37:00 +0000 (19:37 +0400)]
Yielding dict in coroutine
bdarnell [Sun, 13 Oct 2013 21:11:10 +0000 (14:11 -0700)]
Merge pull request #913 from tahajahangir/patch-1
Don't raise connection reset errors in `set_nodelay`
Ben Darnell [Sun, 13 Oct 2013 21:07:18 +0000 (17:07 -0400)]
Fix double logging of exceptions with both @asynchronous and @coroutine.
Tornado 3.1 made the @asynchronous decorator optional when @coroutine
is used, but if it was used anyway both @asynchronous and the new code
would log any uncaught exceptions.
Taha Jahangir [Sun, 13 Oct 2013 17:43:45 +0000 (21:13 +0330)]
Don't raise connection reset errors in `set_nodelay`
If connection was reset, `request.finish()` wrongly raises socket.error instead of ignoring the error.
Brian Turek [Tue, 8 Oct 2013 20:24:29 +0000 (16:24 -0400)]
Fixed WebSocketClient connections not closing on initial connection failure
Ben Darnell [Sun, 6 Oct 2013 00:38:39 +0000 (20:38 -0400)]
Polish for extra debug-mode settings.
Split template_cache into two settings, for template and static files.
Rename several options. Update docs.
bdarnell [Sun, 6 Oct 2013 00:32:23 +0000 (17:32 -0700)]
Merge pull request #896 from jniznan/master
Possibility to disable autoreload when debug is on
Ben Darnell [Sun, 6 Oct 2013 00:26:14 +0000 (20:26 -0400)]
Expand argument-origin tests to include the plural methods.
Ben Darnell [Sun, 6 Oct 2013 00:02:03 +0000 (20:02 -0400)]
Undo erronous chmod +x's
bdarnell [Sun, 6 Oct 2013 00:01:03 +0000 (17:01 -0700)]
Merge pull request #907 from MrTravisB/master
Support distinguishing argument origin between query and body.
Travis Beauvais [Sat, 5 Oct 2013 17:26:15 +0000 (10:26 -0700)]
ise items() since iteritems() not in py3
Travis Beauvais [Sat, 5 Oct 2013 17:13:17 +0000 (10:13 -0700)]
Fix wsgi
Travis Beauvais [Sat, 5 Oct 2013 16:45:45 +0000 (09:45 -0700)]
- Plural query/body arg methods.
- Updated Tests.
- Don't change signature of public methods.
Travis Beauvais [Sat, 28 Sep 2013 19:53:16 +0000 (12:53 -0700)]
Support argument origin
Juraj Niznan [Wed, 4 Sep 2013 13:36:00 +0000 (15:36 +0200)]
possibility to disable autoreload when debug is on
Ben Darnell [Sun, 22 Sep 2013 17:02:11 +0000 (13:02 -0400)]
Fix unix socket error test on python 3 on linux.
The remote address of a unix socket is apparently an empty character
string on mac but an empty byte string on linux.
Ben Darnell [Sun, 22 Sep 2013 16:50:19 +0000 (12:50 -0400)]
Don't assume IP-style socket addresses in error messages.
Closes #900.
Ben Darnell [Sun, 8 Sep 2013 18:02:21 +0000 (14:02 -0400)]
Fix warnings during final GC of the test suite in python 3.4a1.
3.4 can GC things that were uncollectable before, like abandoned generators.
It also seems generates ResourceWarnings for unclosed files in places
where older versions did not.
Ben Darnell [Sun, 8 Sep 2013 16:15:53 +0000 (12:15 -0400)]
Add a default_handler_class setting for custom 404 pages.
The previous solution for custom 404s (a r'.*' rule at the end of the
handlers list) proved to be undiscoverable for many users, and it
could be nontrivial to put the rule in the right place in the presence
of multiple add_handlers calls and the implicit StaticFileHandler rules.
Ben Darnell [Sun, 8 Sep 2013 01:15:59 +0000 (21:15 -0400)]
Set Connection: keep-alive header directly without going through set_header.
set_header is not allowed in WebSocketHandler, but some proxies add
this header unconditionally.
Closes #897.
Ben Darnell [Sun, 8 Sep 2013 01:14:26 +0000 (21:14 -0400)]
Allow preconstructed HTTPRequest objects in websocket_connect.
In particular this allows for headers to be passed in to simulate
browser authentication behavior.
Stephen McMillen [Wed, 4 Sep 2013 12:41:24 +0000 (08:41 -0400)]
Clean up GoogleOAuth2Mixin, fold scope and response_type into the base OAuth2Mixin
Codeb Fan [Mon, 2 Sep 2013 05:12:58 +0000 (13:12 +0800)]
Remove `async_timeout` and use `connect_timeout` instead
Ben Darnell [Sun, 1 Sep 2013 18:37:40 +0000 (14:37 -0400)]
Merge branch 'branch3.1'
Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
Ben Darnell [Sun, 1 Sep 2013 18:21:36 +0000 (14:21 -0400)]
Set version number to 3.1.1
Ben Darnell [Sun, 1 Sep 2013 18:20:03 +0000 (14:20 -0400)]
Add 3.1.1 release notes.
Ben Darnell [Sun, 4 Aug 2013 22:10:21 +0000 (18:10 -0400)]
RequestHandler sets its close callback on the HTTPConnection, not the IOStream.
Fixes a bug in which close callbacks would never be called for subsequent
requests on a reused connection.
Ben Darnell [Thu, 11 Jul 2013 18:00:37 +0000 (14:00 -0400)]
Fix exception in StaticFileHandler when range requested is larger than file.
Stephen McMillen [Sun, 1 Sep 2013 16:02:08 +0000 (12:02 -0400)]
Stop making an absolute URL for GoogleOAuth2Mixin
Stephen McMillen [Sun, 1 Sep 2013 15:48:46 +0000 (11:48 -0400)]
Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params.
Ben Darnell [Thu, 29 Aug 2013 21:32:49 +0000 (17:32 -0400)]
Bump verison number to 3.2.dev2
Ben Darnell [Sun, 25 Aug 2013 02:06:00 +0000 (22:06 -0400)]
Check for empty strings and zero bytes in is_valid_ip.
Closes #893.
bdarnell [Fri, 23 Aug 2013 01:03:24 +0000 (18:03 -0700)]
Merge pull request #889 from pabelanger/temp/license
Add top level LICENSE file
Paul Belanger [Thu, 22 Aug 2013 23:28:35 +0000 (19:28 -0400)]
Add top level LICENSE file
Simlpe commit to add the Apache License, Version 2.0 to the top level
directory.
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Codeb Fan [Wed, 21 Aug 2013 07:48:55 +0000 (15:48 +0800)]
Add a test case for async_timeout in SimpleAsyncHTTPClient.
Codeb Fan [Wed, 21 Aug 2013 06:56:29 +0000 (14:56 +0800)]
Add timeout for requests in SimpleAsyncHTTPClient's queue.
The connect_timeout and request_timeout in HTTPRequest only matter when
the _HTTPConnection get created. In heavy-loadded situation requests in
SimpleAsyncHTTPClient may have already timeouted before they pop out
from queue and get actual processed. This commit adds an timeout
callback for every request appended to SimpleAsyncHTTPClient's request
queue that cannot be processed immediately.
Ben Darnell [Mon, 19 Aug 2013 03:54:59 +0000 (23:54 -0400)]
In add_callback, hold the lock while writing to the waker pipe.
This protects against a shutdown race condition seen occasionally in
the ThreadedResolver unittests. This slightly increases contention
on the callback lock in multi-threaded scenarios, but the cost is
limited by the fact that we only write to the pipe once per IOLoop
iteration.
Closes #875.
Ben Darnell [Sun, 18 Aug 2013 23:24:14 +0000 (19:24 -0400)]
Add a distinct exception for writing a WebSocket message on a closed connection.
This replaces an AttributeError on NoneType.
Closes #879.
Ben Darnell [Sun, 18 Aug 2013 23:20:48 +0000 (19:20 -0400)]
Document the fact that the {% module %} directive requires a RequestHandler.
Closes #880.
Ben Darnell [Sun, 18 Aug 2013 23:17:15 +0000 (19:17 -0400)]
Emphasize and clarify docs for AsyncHTTPClient.close.
Ben Darnell [Sun, 18 Aug 2013 23:12:07 +0000 (19:12 -0400)]
Document Windows support (or lack thereof).
Closes #871.
Ben Darnell [Tue, 13 Aug 2013 04:02:34 +0000 (00:02 -0400)]
Update next-release notes.
Ben Darnell [Tue, 13 Aug 2013 03:52:30 +0000 (23:52 -0400)]
Add comments for domain and path arguments to cookie-clearing methods.
bdarnell [Tue, 13 Aug 2013 03:47:39 +0000 (20:47 -0700)]
Merge pull request #874 from skazhy/clear-all-cookies-custom-domain
Allow deleting all cookies on custom domains
Ben Darnell [Tue, 13 Aug 2013 03:34:00 +0000 (23:34 -0400)]
Update ca-certificates.crt to the current Mozilla version.
This file was generated by downloading
https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
in a web browser to avoid the chicken-and-egg problem with mk-ca-bundle's
built-in downloading, and then running "mk-ca-bundle.pl -n".
Note that we were not affected by the recently-fixed curl bug
(https://github.com/bagder/curl/commit/
51f0b798fa ), but only because
it had been so long since we had updated this file.
Karlis Lauva [Fri, 9 Aug 2013 10:43:20 +0000 (13:43 +0300)]
Allow deleting all cookies on custom domains
Ben Darnell [Sun, 4 Aug 2013 22:35:50 +0000 (18:35 -0400)]
Less crude fix for #855: only do anything for already-connected sockets.
Ben Darnell [Sun, 4 Aug 2013 22:33:37 +0000 (18:33 -0400)]
Merge remote-tracking branch 'pitrou/issue855-ssl-auto-handshake'
Ben Darnell [Sun, 4 Aug 2013 22:10:21 +0000 (18:10 -0400)]
RequestHandler sets its close callback on the HTTPConnection, not the IOStream.
Fixes a bug in which close callbacks would never be called for subsequent
requests on a reused connection.
Ben Darnell [Sun, 4 Aug 2013 22:08:01 +0000 (18:08 -0400)]
Clear the IOStream buffers on close even when there is no close callback.
Closes #828. (again)
Ben Darnell [Sun, 4 Aug 2013 19:45:35 +0000 (15:45 -0400)]
Route all callback error logging in IOLoop through handle_callback_exception.
bdarnell [Sat, 20 Jul 2013 02:42:54 +0000 (19:42 -0700)]
Merge pull request #859 from schlamar/patch-1
Make poll timeout patchable.
Marc Schlaich [Fri, 19 Jul 2013 11:36:00 +0000 (13:36 +0200)]
Make poll timeout patchable.
Stephen McMillen [Wed, 17 Jul 2013 23:30:24 +0000 (19:30 -0400)]
Fix up documentation for the class and the Sphinx reference.
Stephen McMillen [Wed, 17 Jul 2013 22:59:13 +0000 (18:59 -0400)]
Add in Google OAuth2 support.
Antoine Pitrou [Wed, 17 Jul 2013 13:09:05 +0000 (15:09 +0200)]
Crude fix for issue #855: automatically initiate SSL handshake in SSLIOStream.
Perhaps this should be exposed as an option instead?
bdarnell [Tue, 16 Jul 2013 01:10:05 +0000 (18:10 -0700)]
Merge pull request #851 from taguchimail/master
Correctly handle EAGAIN when writing to PipeIOStreams
bdarnell [Tue, 16 Jul 2013 01:04:09 +0000 (18:04 -0700)]
Merge pull request #848 from SuprDewd/issue_820
Fixed laziness of current_user in UI modules, and added tests for current_user.