]>
git.ipfire.org Git - thirdparty/tornado.git/log
INADA Naoki [Mon, 25 Aug 2014 05:56:49 +0000 (14:56 +0900)]
Replace tornado.util.bytes_type to bytes
Ben Darnell [Sun, 24 Aug 2014 15:50:47 +0000 (11:50 -0400)]
Remove the default facebook api key from the demo.
This app has apparently been deactivated by facebook.
Closes #1132.
Ben Darnell [Sun, 24 Aug 2014 15:45:41 +0000 (11:45 -0400)]
s/SIGCHILD/SIGCHLD/ in docs.
Ben Darnell [Sat, 23 Aug 2014 22:12:19 +0000 (18:12 -0400)]
Fix a regression in gzip output for StaticFileHandler.
Streaming static responses confused the gzip output transform since
it could no longer set the correct outgoing content-length. Now
it will fall back to chunked encoding in this case.
Closes #1156.
Ben Darnell [Sat, 23 Aug 2014 00:48:15 +0000 (20:48 -0400)]
Merge pull request #1153 from nwilbert/patch-1
Fixed support for test generators
Niko Wilbert [Fri, 22 Aug 2014 08:48:42 +0000 (10:48 +0200)]
Fixed support for test generators
This fixes the problem that AsyncTestCase no longer seemed to work with test generators (as supported by Nose, http://nose.readthedocs.org/en/latest/writing_tests.html#test-generators).
Ben Darnell [Wed, 20 Aug 2014 03:01:28 +0000 (23:01 -0400)]
Fix a regression in which a timeout could fire after being cancelled.
Closes #1148.
Ben Darnell [Tue, 12 Aug 2014 13:50:02 +0000 (09:50 -0400)]
Add property setter for RequestHandler.locale
Ben Darnell [Tue, 12 Aug 2014 13:17:49 +0000 (09:17 -0400)]
Remove entries from next.rst that made it in to v4.0.1.
Ben Darnell [Tue, 12 Aug 2014 13:17:01 +0000 (09:17 -0400)]
Merge branch 'branch4.0'
Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
Ben Darnell [Tue, 12 Aug 2014 13:11:20 +0000 (09:11 -0400)]
Set version number to 4.0.1.
Ben Darnell [Tue, 12 Aug 2014 12:51:27 +0000 (08:51 -0400)]
Specify a non-zero port when testing localhost resolution.
Some getaddrinfo implementations (including OS X 10.6) fail
if we try to resolve port 0 without AI_PASSIVE.
Closes #1136.
Ben Darnell [Sun, 10 Aug 2014 19:19:48 +0000 (15:19 -0400)]
Add release notes for 4.0.1 and update version number.
Ben Darnell [Sun, 10 Aug 2014 18:02:39 +0000 (14:02 -0400)]
Correctly handle 204 response codes that do not include a content-length.
If a server sends a 204 with no content-length we would wait for the server
to close the connection instead of ending the request (any such servers
are ignoring the "Connection: close" header we send, but apparently exist).
Move some content-length logic from simple_httpclient.py to http1connection.py.
Fix the client-side use of on_connection_close; this affects the
handling of any HTTPInputException.
This fixes regressions relative to Tornado 3.2.
Conflicts:
tornado/websocket.py
Ben Darnell [Sat, 9 Aug 2014 18:09:22 +0000 (14:09 -0400)]
Fix an AttributeError in WebSocketClientConnection._on_close.
Fix an issue that was preventing this issue from showing up in my
tests.
Closes #1140.
WEI Zhicheng [Thu, 7 Aug 2014 17:49:39 +0000 (01:49 +0800)]
Fix `IOStream' when callback function return `Future' and has
`Exception' will silence ignore
WEI Zhicheng [Wed, 6 Aug 2014 10:35:24 +0000 (18:35 +0800)]
Fix `PeriodicCallback' when callback function return `Future' and has
`Exception' will silence ignore
Ben Darnell [Fri, 18 Jul 2014 03:33:34 +0000 (23:33 -0400)]
Add missing return statements to call_at and call_later.
Closes #1119.
Ben Darnell [Thu, 17 Jul 2014 00:23:42 +0000 (20:23 -0400)]
Fall back to pure-python mode on any exception during the build.
Stop the futile process of trying to enumerate which kinds of exceptions
distutils may throw (the latest potential addition: ValueError).
Closes #1115.
Ben Darnell [Sun, 10 Aug 2014 18:02:39 +0000 (14:02 -0400)]
Correctly handle 204 response codes that do not include a content-length.
If a server sends a 204 with no content-length we would wait for the server
to close the connection instead of ending the request (any such servers
are ignoring the "Connection: close" header we send, but apparently exist).
Move some content-length logic from simple_httpclient.py to http1connection.py.
Fix the client-side use of on_connection_close; this affects the
handling of any HTTPInputException.
This fixes regressions relative to Tornado 3.2.
Ben Darnell [Sat, 9 Aug 2014 18:09:22 +0000 (14:09 -0400)]
Fix an AttributeError in WebSocketClientConnection._on_close.
Fix an issue that was preventing this issue from showing up in my
tests.
Closes #1140.
Ben Darnell [Sat, 9 Aug 2014 17:40:46 +0000 (13:40 -0400)]
Merge pull request #1142 from zhicheng/master
Fix `IOStream' when callback function return `Future' and has `Exception' will silence ignore
WEI Zhicheng [Thu, 7 Aug 2014 17:49:39 +0000 (01:49 +0800)]
Fix `IOStream' when callback function return `Future' and has
`Exception' will silence ignore
WEI Zhicheng [Thu, 7 Aug 2014 17:46:23 +0000 (01:46 +0800)]
Merge pull request #1 from tornadoweb/master
update from upstream
Ben Darnell [Thu, 7 Aug 2014 03:03:27 +0000 (23:03 -0400)]
Forgot to git add the new file.
Ben Darnell [Thu, 7 Aug 2014 02:48:20 +0000 (22:48 -0400)]
Start the next-release notes doc.
Ben Darnell [Thu, 7 Aug 2014 00:54:45 +0000 (20:54 -0400)]
Merge pull request #1138 from zhicheng/master
Fix `PeriodicCallback' when callback function return `Future' and has
WEI Zhicheng [Wed, 6 Aug 2014 10:35:24 +0000 (18:35 +0800)]
Fix `PeriodicCallback' when callback function return `Future' and has
`Exception' will silence ignore
Ben Darnell [Tue, 5 Aug 2014 03:46:03 +0000 (23:46 -0400)]
Fix a memory leak and test timeout in websockets.
In some cases (primarily when prepare() is asynchronous), an
HTTP1ServerConnection could be left waiting forever for a connection
to finish when that connection has been detached and handed off to a
WebSocketHandler. This would manifest as a leak and a timeout in
tests as the HTTPServer waited for all its existing connections to
finish.
Also fix a bug in the test tearDown method that would actually
wait forever for connections to finish instead of timing out.
Closes #1133.
Ben Darnell [Sun, 27 Jul 2014 22:29:06 +0000 (18:29 -0400)]
Support the max_wbits websocket deflate parameters.
Slightly improve error handling in the websocket handshake.
Ben Darnell [Sun, 27 Jul 2014 05:26:11 +0000 (01:26 -0400)]
Implement permessage-deflate websocket extension.
Parameters to the extension are not fully supported (the client side
supports client_no_context_takeover which is mandatory to implement,
but the server rejects any parameters offered by the client, and neither
side supports setting wbits).
Closes #308.
Closes #668.
Ben Darnell [Sat, 26 Jul 2014 20:50:16 +0000 (16:50 -0400)]
Merge branch 'branch4.0'
Ben Darnell [Sat, 26 Jul 2014 20:48:38 +0000 (16:48 -0400)]
Expand documentation of WebSocketHandler.check_origin.
Document the potential problems that arise with websockets and
self-signed certificates.
Ben Darnell [Fri, 25 Jul 2014 03:41:49 +0000 (23:41 -0400)]
Improve error handling during ssl handshake.
Previously if do_handshake raised an error not in CONNRESET,
the socket would not be closed properly and the server would start
using 100% of the cpu.
Also handle EBADF errors from do_handshake without logging since
they can be generated by some modes of nmap scans.
Ben Darnell [Fri, 25 Jul 2014 03:38:00 +0000 (23:38 -0400)]
Merge pull request #1090 from tatiana/master
Improve curl_httpclient so it supports custom methods with payload.
Ben Darnell [Fri, 25 Jul 2014 02:28:45 +0000 (22:28 -0400)]
Add "sudo: false" to .travis.yml in an attempt to stop the random build failures.
Ben Darnell [Fri, 25 Jul 2014 02:23:46 +0000 (22:23 -0400)]
Merge branch 'branch4.0'
Ben Darnell [Fri, 25 Jul 2014 02:22:59 +0000 (22:22 -0400)]
Fix a dangling reference to callback in chatdemo.py.
Tatiana Al-Chueyr [Thu, 24 Jul 2014 19:30:36 +0000 (12:30 -0700)]
Merge branch 'master' of github.com:tornadoweb/tornado
Tatiana Al-Chueyr [Thu, 24 Jul 2014 19:30:22 +0000 (12:30 -0700)]
Code cleanup with guided by @bdarnell at #1090
Ben Darnell [Thu, 24 Jul 2014 02:27:08 +0000 (22:27 -0400)]
Merge pull request #1125 from duedil-ltd/chunked-encoding-keep-alive
Fixed a bug with keep-alive chunked requests
Ben Darnell [Thu, 24 Jul 2014 02:24:04 +0000 (22:24 -0400)]
Cite RFC 2730 when stripping extraneous line breaks.
Ben Darnell [Thu, 24 Jul 2014 02:22:36 +0000 (22:22 -0400)]
Merge pull request #1124 from duedil-ltd/non-rfc-crlf
Support for non-RFC compliant header prefixes
Ben Darnell [Thu, 24 Jul 2014 02:18:27 +0000 (22:18 -0400)]
Fix a potential leak of an unclosed AsyncHTTPClient.
Tom Arnfeld [Wed, 23 Jul 2014 17:27:03 +0000 (18:27 +0100)]
Fixed a bug with keep-alive chunked requests
If you make a POST request with 'Connection: Keep-Alive' and use chunked body encoding, tornado will not interpret that as a connection that can be kept alive, and will close the connection.
Tom Arnfeld [Wed, 23 Jul 2014 17:26:50 +0000 (18:26 +0100)]
Added a regression test for keep-alive chunked POST
Tom Arnfeld [Tue, 22 Jul 2014 16:50:16 +0000 (17:50 +0100)]
Support for non-RFC compliant header prefixes
When using keep-alive connections, some HTTP implementations insert unexpected and extra CRLF tokens between each connection, which can result in the next request being prefixed with a CRLF.
Some other client/server implementations are tollerant of this, and for example this bug doesn't show up when using the Go net/http library.
Tom Arnfeld [Wed, 23 Jul 2014 08:28:08 +0000 (09:28 +0100)]
Added a test for extra CRLF lines in keep-alive connections
Tatiana Al-Chueyr [Mon, 21 Jul 2014 23:33:00 +0000 (16:33 -0700)]
Fix tests so they are compatible with python 3.x
Tatiana Al-Chueyr [Mon, 21 Jul 2014 22:53:17 +0000 (15:53 -0700)]
Move patch test to httpclient_test, according to @bdarnell recommendation
using httpclient_test.py instead of curl_httpclient_test.py so simple_httpclient_test.py is benefit from it as well
#1090
Tatiana Al-Chueyr [Mon, 21 Jul 2014 22:28:41 +0000 (15:28 -0700)]
Refactor: simplify patch test according to @bdarnell recommendations at #1090
Tatiana Al-Chueyr [Mon, 21 Jul 2014 22:10:45 +0000 (15:10 -0700)]
Merge branch 'master' of github.com:tornadoweb/tornado
Ben Darnell [Sat, 19 Jul 2014 15:18:24 +0000 (11:18 -0400)]
Add an ubuntu 14.04 vagrant config; drop 12.10.
Ben Darnell [Sat, 19 Jul 2014 15:13:54 +0000 (11:13 -0400)]
Refactor Resolver error tests to mock getaddrinfo.
This appears to be necessary in a vagrant ubuntu/trusty64 VM,
where the resolver takes over 5 seconds before returning an error.
Ben Darnell [Sat, 19 Jul 2014 02:09:43 +0000 (22:09 -0400)]
Merge branch 'branch4.0'
Ben Darnell [Sat, 19 Jul 2014 02:09:11 +0000 (22:09 -0400)]
Merge pull request #1120 from Mouchh/patch-1
Typing error
Cyril Mouchel [Fri, 18 Jul 2014 17:21:35 +0000 (19:21 +0200)]
Typing error
Ben Darnell [Fri, 18 Jul 2014 05:12:52 +0000 (01:12 -0400)]
Disable test_post_307 due to a libcurl bug that manifests with TwistedIOLoop on linux.
Ben Darnell [Fri, 18 Jul 2014 03:33:34 +0000 (23:33 -0400)]
Add missing return statements to call_at and call_later.
Closes #1119.
Ben Darnell [Fri, 18 Jul 2014 03:26:12 +0000 (23:26 -0400)]
Add a default value to a getaddr() call in HTTPServerRequest.
Closes #1118.
Ben Darnell [Fri, 18 Jul 2014 03:17:32 +0000 (23:17 -0400)]
Add test for curl_httpclient ioctl change.
Ben Darnell [Thu, 17 Jul 2014 00:23:42 +0000 (20:23 -0400)]
Fall back to pure-python mode on any exception during the build.
Stop the futile process of trying to enumerate which kinds of exceptions
distutils may throw (the latest potential addition: ValueError).
Closes #1115.
Ben Darnell [Thu, 17 Jul 2014 00:16:38 +0000 (20:16 -0400)]
Merge pull request #1116 from homm/curl-put-redirects
make IOCMD_RESTARTREAD available for PUT requests
homm [Wed, 16 Jul 2014 13:43:12 +0000 (17:43 +0400)]
make IOCMD_RESTARTREAD available for PUT requests
Ben Darnell [Wed, 16 Jul 2014 04:29:27 +0000 (00:29 -0400)]
Read config file in binary mode instead of try/except TypeError.
Ben Darnell [Wed, 16 Jul 2014 04:19:10 +0000 (00:19 -0400)]
Merge pull request #1086 from likang/master
Make options.parse_config_file supporting custom encoding
Ben Darnell [Wed, 16 Jul 2014 04:06:54 +0000 (00:06 -0400)]
Merge pull request #1102 from pekrau/master
Add 'reason' kwarg to send_error.
Ben Darnell [Wed, 16 Jul 2014 02:54:16 +0000 (22:54 -0400)]
Merge pull request #1109 from kmike/bytesio
Removed dead "io.BytesIO vs cStringIO.StringIO" code
Ben Darnell [Wed, 16 Jul 2014 02:47:50 +0000 (22:47 -0400)]
Merge branch 'branch4.0'
Ben Darnell [Wed, 16 Jul 2014 02:47:21 +0000 (22:47 -0400)]
Fix example in docs.
Ben Darnell [Tue, 15 Jul 2014 13:43:32 +0000 (09:43 -0400)]
Bump master branch version number
Ben Darnell [Tue, 15 Jul 2014 12:42:27 +0000 (08:42 -0400)]
Set version number to 4.0
Ben Darnell [Tue, 15 Jul 2014 12:41:54 +0000 (08:41 -0400)]
Move next.rst to 4.0.0.rst
Mikhail Korobov [Tue, 15 Jul 2014 10:50:21 +0000 (16:50 +0600)]
remove dead code
io.BytesIO is available since Python 2.6; Tornado doesn't support Python 2.5, so there won't be ImportError.
Ben Darnell [Tue, 15 Jul 2014 01:18:42 +0000 (21:18 -0400)]
Drop the 3.2-era "upgrade notes" from the homepage.
The need to install dependencies is well-established by now.
Ben Darnell [Tue, 15 Jul 2014 01:14:01 +0000 (21:14 -0400)]
Reorganize top-level doc navigation.
Ben Darnell [Tue, 15 Jul 2014 01:05:33 +0000 (21:05 -0400)]
Flatten doc navigation
sphinx_rtd_theme's sidebar will not go deeper than two levels
in the table of contents, so remove the extra index->documentation
indirection.
Ben Darnell [Mon, 14 Jul 2014 14:05:11 +0000 (10:05 -0400)]
Add a Highlights section to the 4.0 release notes.
Ben Darnell [Sun, 13 Jul 2014 22:19:29 +0000 (18:19 -0400)]
Update gen docs: deemphasize Task, Callback, and Wait.
Ben Darnell [Sun, 13 Jul 2014 03:07:01 +0000 (23:07 -0400)]
Install sphinx_rtd_theme when running sphinx tests.
Ben Darnell [Sun, 13 Jul 2014 02:57:16 +0000 (22:57 -0400)]
Use sphinx_rtd_theme instead of our lightly-customized version of sphinx default.
The main benefit of this change is the responsive layout for phones and
tablets.
Ben Darnell [Sun, 13 Jul 2014 02:40:32 +0000 (22:40 -0400)]
Merge pull request #1107 from ajdavis/patch-3
Properly restore ASYNC_TEST_TIMEOUT after test.
Ben Darnell [Sun, 13 Jul 2014 02:39:31 +0000 (22:39 -0400)]
Merge pull request #1106 from ajdavis/patch-2
Bugfix in asynchronous_fetch example code.
Ben Darnell [Sun, 13 Jul 2014 02:39:15 +0000 (22:39 -0400)]
Merge pull request #1105 from ajdavis/patch-1
Complete the Motor example.
A. Jesse Jiryu Davis [Sat, 12 Jul 2014 18:25:13 +0000 (14:25 -0400)]
Properly restore ASYNC_TEST_TIMEOUT after test.
A. Jesse Jiryu Davis [Fri, 11 Jul 2014 17:05:18 +0000 (13:05 -0400)]
Bugfix in asynchronous_fetch example code.
A. Jesse Jiryu Davis [Fri, 11 Jul 2014 17:03:16 +0000 (13:03 -0400)]
Complete the Motor example.
Ben Darnell [Thu, 10 Jul 2014 18:24:30 +0000 (14:24 -0400)]
Merge pull request #1101 from tioover/master
typo
Per Kraulis [Thu, 10 Jul 2014 13:47:28 +0000 (15:47 +0200)]
Fixes bug disallowing custom-made reason phrase
The send_error method is, I believe, supposed to allow sending an HTTP reason phrase that is not one of the standard ones. This change corrects an apparent bug which made this impossible. With the correction, specifying an 'error' keyword argument to send_error actually sends the specified
reason phrase to the client.
Tengfei Tsui [Thu, 10 Jul 2014 09:15:43 +0000 (17:15 +0800)]
typo
Ben Darnell [Wed, 9 Jul 2014 02:50:05 +0000 (22:50 -0400)]
Set version number to 4.0b3.
Ben Darnell [Wed, 9 Jul 2014 02:49:30 +0000 (22:49 -0400)]
Add XSRF change to the release notes.
Ben Darnell [Wed, 9 Jul 2014 02:27:35 +0000 (22:27 -0400)]
Merge remote-tracking branch 'tictail/branch3.2'
Closes #1097
William Tisäter [Tue, 8 Jul 2014 13:52:25 +0000 (15:52 +0200)]
Catch `binascii.a2b_hex` errors on Python 3
William Tisäter [Tue, 8 Jul 2014 07:07:48 +0000 (09:07 +0200)]
Don't raise when failing to hex decode XSRF v1
William Tisäter [Tue, 8 Jul 2014 07:07:18 +0000 (09:07 +0200)]
Turn short and hex XSRF tests into success tests
William Tisäter [Mon, 7 Jul 2014 21:29:44 +0000 (23:29 +0200)]
Remove length requirement from v1 XSRF tokens
Ben Darnell [Sun, 6 Jul 2014 15:10:09 +0000 (11:10 -0400)]
Fix outdated variable name in docs.
Ben Darnell [Sat, 5 Jul 2014 22:49:36 +0000 (18:49 -0400)]
Add a test for exception in websocket callbacks.
Ben Darnell [Sat, 5 Jul 2014 21:55:44 +0000 (17:55 -0400)]
Rewrite chatdemo to use a coroutine instead of callbacks.