]>
git.ipfire.org Git - thirdparty/tornado.git/log
Ronan Amicel [Mon, 30 Dec 2013 21:35:33 +0000 (22:35 +0100)]
Fix asyncio code example
Ben Darnell [Mon, 30 Dec 2013 19:18:28 +0000 (14:18 -0500)]
Set version number to 3.2b1.
Ben Darnell [Mon, 30 Dec 2013 19:17:57 +0000 (14:17 -0500)]
Add python 3.4 tag to setup.py
Ben Darnell [Mon, 30 Dec 2013 18:24:53 +0000 (13:24 -0500)]
Reorganize and expand next-release notes.
Ben Darnell [Mon, 30 Dec 2013 17:19:50 +0000 (12:19 -0500)]
Fix doc build on travis after removal of 'cd maint'
Ben Darnell [Mon, 30 Dec 2013 17:10:55 +0000 (12:10 -0500)]
Remove 'cd maint' from travis script.
This was needed for 2to3, which we no longer use. The changed
directory meant that coveralls wasn't seeing our .coveragerc.
Ben Darnell [Mon, 30 Dec 2013 16:58:31 +0000 (11:58 -0500)]
Correctly skip coverage collection on 2.6.
Ben Darnell [Mon, 30 Dec 2013 16:52:49 +0000 (11:52 -0500)]
Disable coverage collection on python 2.6.
Ben Darnell [Mon, 30 Dec 2013 16:37:58 +0000 (11:37 -0500)]
Add coveralls to travis config.
Ben Darnell [Mon, 30 Dec 2013 16:32:38 +0000 (11:32 -0500)]
Disable --pre flag in tox installs to fix environment recreation.
Remove an old hack for monotime package.
Ben Darnell [Mon, 30 Dec 2013 04:56:37 +0000 (23:56 -0500)]
autopep8 whitespace fixes.
Ben Darnell [Mon, 30 Dec 2013 04:43:23 +0000 (23:43 -0500)]
Update run_autopep8.sh flags.
Ben Darnell [Mon, 30 Dec 2013 04:33:47 +0000 (23:33 -0500)]
Upgrade maint/requirements.txt versions.
Ben Darnell [Mon, 30 Dec 2013 01:41:17 +0000 (20:41 -0500)]
Disallow ipv6 in curl-based tests.
The test servers only listen on ipv4, and it appears that libcurl 7.19.34
has regressed in its ability to handle the case when localhost resolves
to both v4 and v6 variants but only one works.
IPv6 was already disabled by default in simple_httpclient tests.
Ben Darnell [Mon, 30 Dec 2013 00:45:34 +0000 (19:45 -0500)]
Use a more reliable method to generate resolver errors.
On some platforms even getaddrinfo is fooled by the fake NXDOMAIN results.
Ben Darnell [Sun, 29 Dec 2013 19:57:29 +0000 (14:57 -0500)]
Fixes for soon-to-be-released py3-compatible version of pycurl.
Ben Darnell [Sun, 29 Dec 2013 01:11:58 +0000 (20:11 -0500)]
Mark another timing-sensitive test as skipOnTravis.
Ben Darnell [Sun, 29 Dec 2013 01:11:20 +0000 (20:11 -0500)]
Disable the "bad_host" tests on CaresResolver
This is an unfortunate hack, but c-ares doesn't handle fake NXDOMAIN
responses in the same way as other resolvers.
bdarnell [Sun, 29 Dec 2013 00:44:20 +0000 (16:44 -0800)]
Merge pull request #965 from ajdavis/twisted-resolver-err
Error handling in TwistedResolver
Ben Darnell [Sun, 29 Dec 2013 00:38:16 +0000 (19:38 -0500)]
Add some markup to the old template intro docs.
Closes #967.
A. Jesse Jiryu Davis [Tue, 24 Dec 2013 21:02:07 +0000 (15:02 -0600)]
Error handling in TwistedResolver
Ben Darnell [Mon, 23 Dec 2013 22:33:46 +0000 (17:33 -0500)]
Improve log message for invalid unicode.
Truncate long values, and include the argument name if available.
bdarnell [Mon, 23 Dec 2013 22:25:46 +0000 (14:25 -0800)]
Merge pull request #963 from minrk/invalid-unicode
bad unicode in URLs shouldn't cause 500
MinRK [Mon, 23 Dec 2013 22:23:36 +0000 (14:23 -0800)]
expect log message in test_decode_argument_invalid_unicode
Ben Darnell [Mon, 23 Dec 2013 22:08:01 +0000 (17:08 -0500)]
Remove new HTTPRequest.if_modified_since property.
This property was unusual in that its getter returned a value its
setter would not accept, and was redundant with direct access to the
headers.
Use the property setters in the constructor instead of duplicating logic.
MinRK [Mon, 23 Dec 2013 00:34:06 +0000 (16:34 -0800)]
rase 400, not 500 on invalid unicode in decode_argument
bdarnell [Mon, 23 Dec 2013 21:58:10 +0000 (13:58 -0800)]
Merge pull request #945 from chrismcguire/request_body_property
Add properties corresponding to HTTPRequest constructor arguments
Ben Darnell [Mon, 23 Dec 2013 21:10:42 +0000 (16:10 -0500)]
Minor cleanups for import deadlock test:
* Avoid _test.py suffix for file that doesn't contain test cases.
* Resolve localhost instead of tornadoweb.org to avoid network dependency.
* Tighten timeout and add an alarm so failed tests don't leave orphaned
child processes.
* Avoid busy loop while waiting for child to exit.
bdarnell [Mon, 23 Dec 2013 21:01:48 +0000 (13:01 -0800)]
Merge pull request #964 from ajdavis/resolver-deadlock
Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.
A. Jesse Jiryu Davis [Mon, 16 Dec 2013 23:56:05 +0000 (18:56 -0500)]
Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.
MinRK [Sun, 22 Dec 2013 06:29:40 +0000 (22:29 -0800)]
test that invalid unicode doesn't raise 500
Anton Shestakov [Sun, 22 Dec 2013 05:07:10 +0000 (13:07 +0800)]
Un-force relative in format_date
Chris McGuire [Mon, 25 Nov 2013 18:08:03 +0000 (13:08 -0500)]
Set altered HTTPRequest attributes as parameters.
bdarnell [Mon, 2 Dec 2013 12:55:49 +0000 (04:55 -0800)]
Merge pull request #949 from Lardjo/patch-1
Added closing parenthesis
Konstantin [Mon, 2 Dec 2013 08:04:01 +0000 (11:04 +0300)]
Update gen.py
Docs. Missing closing parenthesis on example.
bdarnell [Sun, 1 Dec 2013 21:14:42 +0000 (13:14 -0800)]
Merge pull request #944 from anton-ryzhov/reset_flags
Reset state on `start()` end
bdarnell [Sun, 1 Dec 2013 21:09:59 +0000 (13:09 -0800)]
Merge pull request #940 from klaussfreire/master
Speed up gen.corouting when yielding done Futures
Ben Darnell [Sun, 1 Dec 2013 21:01:35 +0000 (16:01 -0500)]
Make setuptools optional again in setup.py.
Ben Darnell [Sun, 1 Dec 2013 20:47:05 +0000 (15:47 -0500)]
Update docs for LogFormatter constructor arguments.
bdarnell [Sun, 1 Dec 2013 20:43:46 +0000 (12:43 -0800)]
Merge pull request #931 from SuminAndrew/LogFormatter-format
add custom fmt and datefmt to LogFormatter
Ben Darnell [Sun, 1 Dec 2013 20:07:16 +0000 (15:07 -0500)]
Avoid a quote mark that renders incorrectly in PDF mode.
Closes #935.
Ben Darnell [Sun, 1 Dec 2013 20:04:02 +0000 (15:04 -0500)]
Document the attributes required by @run_on_executor.
Closes #933.
bdarnell [Sun, 1 Dec 2013 14:44:09 +0000 (06:44 -0800)]
Merge pull request #936 from ticosax/add-timeout-on-future
Pass timeout argument to Future.result
bdarnell [Sat, 30 Nov 2013 18:21:44 +0000 (10:21 -0800)]
Merge pull request #937 from lepture/fix-assert
Raise TypeError instead of AssertionError.
Anton Ryzhov [Mon, 25 Nov 2013 15:06:08 +0000 (19:06 +0400)]
Reset state on `start()` end
Claudio Freire [Tue, 19 Nov 2013 17:24:48 +0000 (14:24 -0300)]
Speed up gen.corouting when yielding done Futures
Hsiaoming Yang [Mon, 18 Nov 2013 02:17:50 +0000 (10:17 +0800)]
Raise TypeError instead of AssertionError.
Nicolas Delaby [Sun, 17 Nov 2013 18:36:28 +0000 (19:36 +0100)]
Pass timeout argument to Future.result
AndreySumin [Wed, 6 Nov 2013 07:15:03 +0000 (11:15 +0400)]
add custom fmt and datefmt to LogFormatter
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.