]>
git.ipfire.org Git - thirdparty/tornado.git/log
Roey Berman [Mon, 13 Feb 2012 13:23:24 +0000 (15:23 +0200)]
Fixed: Subsequent calls to AsyncTestCase.wait() now clear previously set timeouts.
See: http://groups.google.com/group/python-tornado/browse_thread/thread/
cc77a08b15c39a14
Ben Darnell [Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)]
Check in autopep8 script
Ben Darnell [Thu, 9 Feb 2012 09:00:11 +0000 (01:00 -0800)]
Fix weird indentation in auth.py and simple_httpclient_test.py
Ben Darnell [Thu, 9 Feb 2012 08:55:27 +0000 (00:55 -0800)]
While I'm touching every file, run autopep8 too.
Might as well get all the merge headaches over with at once :)
Ran with
$ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py
Ben Darnell [Thu, 9 Feb 2012 08:17:58 +0000 (00:17 -0800)]
Turn on __future__ division too.
All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).
We have now turned on all the __future__ options available in python2.5.
Ben Darnell [Thu, 9 Feb 2012 07:38:34 +0000 (23:38 -0800)]
Fix one last implicit relative import
Ben Darnell [Thu, 9 Feb 2012 07:22:51 +0000 (23:22 -0800)]
Standardize future imports for all files in the package.
Ben Darnell [Thu, 9 Feb 2012 07:16:56 +0000 (23:16 -0800)]
Add a script to rewrite __future__ imports
Ben Darnell [Thu, 2 Feb 2012 17:56:47 +0000 (09:56 -0800)]
Remove unused __main__ block that ran doctests from a non-test module.
Ben Darnell [Thu, 2 Feb 2012 17:44:18 +0000 (09:44 -0800)]
Merge remote-tracking branch 'igorsobreira/master'
Ben Darnell [Wed, 1 Feb 2012 17:15:23 +0000 (09:15 -0800)]
Enable strict warnings in test runs.
This includes python 3.2's ResourceWarnings, which exposed the
socket leaks fixed in the previous commit.
Ben Darnell [Wed, 1 Feb 2012 17:17:03 +0000 (09:17 -0800)]
Always close sockets in simple_httpclient instead of leaving them for the GC.
Also fix some other sockets left open in tests.
Closes #451.
Ben Darnell [Tue, 31 Jan 2012 08:34:12 +0000 (00:34 -0800)]
Add a version check for the curses unicode hack so it won't break when
python 3.2.3 or 3.3 are released.
Closes #450.
Ben Darnell [Tue, 31 Jan 2012 07:46:36 +0000 (23:46 -0800)]
Remove optional setuptools import.
We don't rely on any setuptools features for python2 builds, and the
optional import makes our builds depend on the environment in subtle
ways (egg-info directories, etc).
Ben Darnell [Tue, 31 Jan 2012 07:39:31 +0000 (23:39 -0800)]
Bump post-release version number (now pep 386 compliant!)
Ben Darnell [Mon, 30 Jan 2012 19:10:17 +0000 (11:10 -0800)]
Revert "Run the website in python2.7 mode"
Can't use python2.7 mode without migrating to the "high-replication
datastore", and even though we don't have any data "migration" is a
pain.
This reverts commit
e960e9bc9d48906ed37b65ad6eb774ab33637170 .
Ben Darnell [Mon, 30 Jan 2012 19:01:44 +0000 (11:01 -0800)]
Set version number to 2.2.
Ben Darnell [Mon, 30 Jan 2012 19:01:35 +0000 (11:01 -0800)]
Final release notes for 2.2
Ben Darnell [Mon, 30 Jan 2012 05:56:53 +0000 (21:56 -0800)]
Run the website in python2.7 mode
Ben Darnell [Mon, 30 Jan 2012 05:53:45 +0000 (21:53 -0800)]
Add a highlights section to the release notes.
Igor Sobreira [Wed, 25 Jan 2012 02:19:40 +0000 (00:19 -0200)]
Add test to parse_multipart_form_data() when no "name" parameter is found
Igor Sobreira [Wed, 25 Jan 2012 02:14:17 +0000 (00:14 -0200)]
Add test to parse_multipart_form_data() when line does not end with the correct line break (\r\n)
Igor Sobreira [Wed, 25 Jan 2012 01:48:54 +0000 (23:48 -0200)]
Add test to parse_multipart_form_data() when invalid Content-Disposition
Igor Sobreira [Wed, 25 Jan 2012 01:43:47 +0000 (23:43 -0200)]
Add test to parse_multipart_form_data() when missing headers
Igor Sobreira [Wed, 25 Jan 2012 00:45:18 +0000 (22:45 -0200)]
Add test to parse_multipart_form_data() on httputil when "boundary" parameter has quotes
Ben Darnell [Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)]
Document curl_httpclient empty password fix.
Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.
Ben Darnell [Mon, 23 Jan 2012 18:12:56 +0000 (10:12 -0800)]
Merge commit 'df23c'
Ben Darnell [Mon, 23 Jan 2012 17:45:29 +0000 (09:45 -0800)]
Fix gen.engine docs on decorator order.
Add some more test cases that use gen.engine and web.asynchronous together.
dave mankoff [Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)]
change encode('ascii') to utf8()
Ben Darnell [Mon, 23 Jan 2012 02:15:01 +0000 (18:15 -0800)]
Add a timeout to test_sslv2_fail so it passes on cygwin.
Ben Darnell [Mon, 23 Jan 2012 01:52:43 +0000 (17:52 -0800)]
Doc updates
Ben Darnell [Mon, 23 Jan 2012 01:04:51 +0000 (17:04 -0800)]
Release note updates
Ben Darnell [Sun, 22 Jan 2012 23:26:35 +0000 (15:26 -0800)]
Make StaticFileHandler.parse_url_path an instance method, and make
it responsible for os.path.sep conversion.
Assorted doc updates for StaticFileHandler.
Ben Darnell [Sun, 22 Jan 2012 22:56:21 +0000 (14:56 -0800)]
Merge commit '59812' into work
Ben Darnell [Sun, 22 Jan 2012 22:25:16 +0000 (14:25 -0800)]
Merge remote-tracking branch 'birknilson/static_url_override' into work
Ben Darnell [Sun, 22 Jan 2012 22:19:19 +0000 (14:19 -0800)]
Always set Etag in StaticFileHandler so it won't break if the default
Etag implementation in RequestHandler changes.
dave mankoff [Sun, 22 Jan 2012 22:15:10 +0000 (17:15 -0500)]
fix curl basic auth
Ben Darnell [Sun, 22 Jan 2012 22:10:14 +0000 (14:10 -0800)]
Merge remote-tracking branch 'lerks/master' into work
Ben Darnell [Sun, 22 Jan 2012 01:39:37 +0000 (17:39 -0800)]
Update websocket chat demo to work when not addressed as localhost.
Turn on draft76 support.
Ben Darnell [Sun, 22 Jan 2012 01:28:07 +0000 (17:28 -0800)]
Merge remote-tracking branch 'MrJoes/master' into work
Conflicts:
tornado/websocket.py
Ben Darnell [Sun, 22 Jan 2012 01:20:10 +0000 (17:20 -0800)]
Refactor websocket close logic; remove dependency on singleton IOLoop.
Ben Darnell [Sun, 22 Jan 2012 01:12:22 +0000 (17:12 -0800)]
Disable slow websocket performance tests by default.
Add pypy to the mix for when we do run the perf tests. Depending on
the benchmark pypy is ~twice as fast as cpython 2.7
Ben Darnell [Sun, 22 Jan 2012 00:16:36 +0000 (16:16 -0800)]
Remove stray log line
Ben Darnell [Sat, 21 Jan 2012 23:58:35 +0000 (15:58 -0800)]
Check if the stream is closed before writing final websocket close packet.
Closes #390.
Ben Darnell [Sat, 21 Jan 2012 23:34:11 +0000 (15:34 -0800)]
Websocket subprotocol updates.
Failure to select a subprotocol is not fatal, so rename method from
validate_subprotocol to select_subprotocol. Subprotocols are a
comma-separated list in the RFC version, but a single value in
draft76.
Ben Darnell [Sat, 21 Jan 2012 23:15:12 +0000 (15:15 -0800)]
Merge remote-tracking branch 'davidgaleano/master' into work
Conflicts:
tornado/websocket.py
Ben Darnell [Sat, 21 Jan 2012 22:56:43 +0000 (14:56 -0800)]
Allow handlers to override the selection of "ws" or "wss" in the draft76
handshake, to work with SSL proxies that do not insert an X-Scheme header.
Closes #437.
Ben Darnell [Sat, 21 Jan 2012 22:45:51 +0000 (14:45 -0800)]
Merge remote-tracking branch 'nephics/master' into work
Ben Darnell [Sat, 21 Jan 2012 22:35:21 +0000 (14:35 -0800)]
Check in a requirements file for the tools I use while working on tornado.
Ben Darnell [Sat, 21 Jan 2012 22:09:18 +0000 (14:09 -0800)]
Add .coveragerc for test coverage reporting.
Closes #439.
Ben Darnell [Wed, 18 Jan 2012 09:17:30 +0000 (01:17 -0800)]
Add 307 too and update release notes.
Ben Darnell [Wed, 18 Jan 2012 09:11:21 +0000 (01:11 -0800)]
Merge remote-tracking branch 'amorton/master'
Conflicts:
tornado/test/simple_httpclient_test.py
Ben Darnell [Wed, 18 Jan 2012 09:00:06 +0000 (01:00 -0800)]
Release note updates for twitter client changes
Ben Darnell [Wed, 18 Jan 2012 08:57:55 +0000 (00:57 -0800)]
Make TwitterMixin.twitter_request accept complete urls, not just partial paths.
Closes #418.
Ben Darnell [Wed, 18 Jan 2012 08:51:30 +0000 (00:51 -0800)]
Merge remote-tracking branch 'gutomaia/master'
Ben Darnell [Wed, 18 Jan 2012 08:43:38 +0000 (00:43 -0800)]
Add RequestHandler.on_finish method.
Closes #367.
Ben Darnell [Tue, 17 Jan 2012 07:23:21 +0000 (23:23 -0800)]
Major update to tornado.platform.twisted.
Significantly improved compatibility (most important changes are in
TornadoReactor._invoke_callback) and expanded test coverage.
Ben Darnell [Sat, 14 Jan 2012 07:12:39 +0000 (23:12 -0800)]
Support non-integer timeouts for curl_httpclient.
Closes #399.
Ben Darnell [Sat, 14 Jan 2012 07:07:37 +0000 (23:07 -0800)]
Add a fourth release status field to tornado.version_info.
Closes #432.
Ben Darnell [Sat, 14 Jan 2012 07:06:49 +0000 (23:06 -0800)]
Release note update
Ben Darnell [Sat, 14 Jan 2012 06:51:26 +0000 (22:51 -0800)]
Merge remote-tracking branch 'pkienzle/master'
Ben Darnell [Sat, 14 Jan 2012 06:42:16 +0000 (22:42 -0800)]
The Connection request header should be case-insensitive.
Ben Darnell [Tue, 10 Jan 2012 18:26:15 +0000 (10:26 -0800)]
Add a new(er) ubuntu vm setup to test missing SSLv2
Ben Darnell [Tue, 10 Jan 2012 18:24:10 +0000 (10:24 -0800)]
Some python/openssl builds don't have SSLv2 compiled in, so skip the
test in this case.
Paul Kienzle [Tue, 10 Jan 2012 17:41:43 +0000 (12:41 -0500)]
make sure addresses returned from getaddrinfo are unique
Ben Darnell [Tue, 10 Jan 2012 07:50:43 +0000 (23:50 -0800)]
Release notes for the last two ssl changes
Ben Darnell [Mon, 9 Jan 2012 19:59:24 +0000 (11:59 -0800)]
Disable SSLv2 in simple_httpclient.
Contrary to the python documentation, SSLv2 is enabled by default
unless openssl version 1.0 or newer is used; older versions appear
to still be in use (e.g. in Ubuntu 10.04 LTS and Mac OS X Lion)
Ben Darnell [Mon, 9 Jan 2012 18:33:01 +0000 (10:33 -0800)]
Make SSLIOStream compatible with SSLv3- and TLSv1-only servers.
Due to some implementation detail the default SSLv23 mode allows reads
before the handshake has completed, but the other modes do not.
Closes #431.
Ben Darnell [Sun, 8 Jan 2012 21:49:30 +0000 (13:49 -0800)]
Make it possible to run the test suite with --httpclient=CurlAsyncHTTPClient
Ben Darnell [Sun, 8 Jan 2012 08:01:18 +0000 (00:01 -0800)]
Update docs for recent websocket changes
Ben Darnell [Sun, 8 Jan 2012 07:24:30 +0000 (23:24 -0800)]
Disable websocket draft76 protocol by default.
Ben Darnell [Sun, 8 Jan 2012 01:31:56 +0000 (17:31 -0800)]
Add an explicit binary option to WebSocketHandler.write_message.
Switching automatically based on python's bytes vs unicode types is
error-prone in python2 where e.g. json_encode returns bytes.
Closes #429.
Jacob Sondergaard [Thu, 5 Jan 2012 11:17:01 +0000 (12:17 +0100)]
Set the request cookies property to an empty dict if cookie parsing fails
This commit reverses the bug introduced in commit
4a4d871 , leaving an
undefined cookies property on failure to parse a request cookie.
The bug results in a 'NoneType is not iterable' error when calling
RequestHandler.get_cookie() after a cookie parsing exception.
Ben Darnell [Thu, 5 Jan 2012 08:27:45 +0000 (00:27 -0800)]
Handle redirects before processing data and sending it to streaming_callback.
Previously, if you were using follow_redirects and streaming_callback
and hit a redirect with a non-empty body, that body would be passed
to streaming_callback as well.
As a side effect, this improves compatibility with some misconfigured
sites that send Content-Encoding: gzip on redirects without actually
compressing the body.
Ben Darnell [Wed, 4 Jan 2012 05:19:51 +0000 (21:19 -0800)]
Make fork_processes raise SystemExit instead of returning None when
all child processes exit cleanly.
Ben Darnell [Tue, 3 Jan 2012 03:17:57 +0000 (19:17 -0800)]
Add comment about (non-)thread-safety of IOLoop.add_timeout.
Ben Darnell [Mon, 2 Jan 2012 07:19:48 +0000 (23:19 -0800)]
Release note updates
Ben Darnell [Mon, 2 Jan 2012 06:54:36 +0000 (22:54 -0800)]
Rewrite IP check to use getaddrinfo instead of inet_pton (more portable).
Closes #392.
Ben Darnell [Mon, 2 Jan 2012 06:26:12 +0000 (22:26 -0800)]
Merge remote-tracking branch 'davidwilemski/xheaders-xss' into work
Ben Darnell [Mon, 2 Jan 2012 03:20:05 +0000 (19:20 -0800)]
Use a StackContext to allow exceptions thrown from asynchronous functions
called by a generator to be caught normally.
Closes #405.
Closes #411.
Ben Darnell [Mon, 2 Jan 2012 00:17:35 +0000 (16:17 -0800)]
Allow exceptions thrown in the first (synchronous) phase of a gen.Task
to be caught by the generator.
Ben Darnell [Sun, 1 Jan 2012 22:00:13 +0000 (14:00 -0800)]
Increase maximum IOLoop poll timeout.
I believe the previous 0.2s limit was there to work around an old bug in
the add_callback waker that has since been fixed.
Ben Darnell [Sat, 31 Dec 2011 04:20:25 +0000 (20:20 -0800)]
Support status codes other than 301 and 302 in RequestHandler.redirect().
Closes #228.
Closes #424.
Ben Darnell [Sat, 31 Dec 2011 00:02:40 +0000 (16:02 -0800)]
Avoid merging the entire read buffer for IOStream.read_until.
Among other things, this dramatically speeds up downloads of large
chunked files over a fast network with SimpleHTTPClient.
Fixes #425.
Ben Darnell [Fri, 30 Dec 2011 22:47:21 +0000 (14:47 -0800)]
bytearray is a 2.6ism; use array.array("B") instead for 2.5 compatibility.
Ben Darnell [Fri, 30 Dec 2011 21:29:12 +0000 (13:29 -0800)]
Invert fragment-handling logic for clarity
Ben Darnell [Fri, 30 Dec 2011 20:54:36 +0000 (12:54 -0800)]
Improve websocket conformance as reported by autobahn.
Of note:
* It's now possible to send binary frames (auto-switched based on
whether the argument to write_message is bytes or unicode)
* Invalid utf8 in text frames is now an error
* Lots of fragmentation-related improvements
Ben Darnell [Fri, 30 Dec 2011 20:53:11 +0000 (12:53 -0800)]
Add websocket conformance tests using autobahn
Ben Darnell [Fri, 30 Dec 2011 08:49:19 +0000 (00:49 -0800)]
Install more python versions in the linux VM so we can test epoll.c too.
Also fix a bug in the test for python 2.5 on systems where ipv6 is not
configured (socket.gaierror didn't have an `errno` attribute until 2.6)
Ben Darnell [Fri, 30 Dec 2011 06:58:03 +0000 (22:58 -0800)]
Misc doc updates.
David Wilemski [Sat, 17 Dec 2011 19:48:23 +0000 (14:48 -0500)]
A typo fix I noticed while fixing bug 392
David Wilemski [Sat, 17 Dec 2011 19:45:59 +0000 (14:45 -0500)]
Fix for bug #392
Validates the remote_ip from xheaders using socket.inet_pton
Ben Darnell [Fri, 16 Dec 2011 08:07:25 +0000 (00:07 -0800)]
Fix an implicit relative import
Ben Darnell [Fri, 16 Dec 2011 07:59:42 +0000 (23:59 -0800)]
Start accumulating release notes
Ben Darnell [Fri, 16 Dec 2011 07:35:48 +0000 (23:35 -0800)]
Merge remote-tracking branch 'alekstorm/master' into merge
Ben Darnell [Fri, 16 Dec 2011 07:27:30 +0000 (23:27 -0800)]
Merge remote-tracking branch 'alekstorm/template_comment' into merge
Ben Darnell [Fri, 16 Dec 2011 06:54:51 +0000 (22:54 -0800)]
Improve app engine tests now that SDK 1.6.1 is compatible with virtualenv
Serge S. Koval [Sat, 10 Dec 2011 09:58:16 +0000 (11:58 +0200)]
Minor cleanup.
Serge S. Koval [Sat, 10 Dec 2011 09:56:45 +0000 (11:56 +0200)]
Removed unnecessary checks from appropriate websocket protocol implementations.
Serge S. Koval [Thu, 8 Dec 2011 12:48:38 +0000 (14:48 +0200)]
Connection header must include "Upgrade", but should not be equal to.