]>
git.ipfire.org Git - thirdparty/tornado.git/log
Justin Mayhew [Sat, 4 Oct 2014 02:39:00 +0000 (23:39 -0300)]
Fix typo
Ben Darnell [Fri, 26 Sep 2014 01:27:49 +0000 (21:27 -0400)]
Merge pull request #1207 from leekchan/locale_test
Add some unit tests for tornado.locale
Ben Darnell [Fri, 26 Sep 2014 01:25:46 +0000 (21:25 -0400)]
Merge pull request #1206 from leekchan/test_web_redirect
Add a unit test for tornado.web.RedirectHandler
Lee Kyoung chan [Wed, 24 Sep 2014 12:37:37 +0000 (21:37 +0900)]
Add a unit test for locale.format_day
Lee Kyoung chan [Tue, 23 Sep 2014 11:44:49 +0000 (20:44 +0900)]
Add a unit test for locale.list
Lee Kyoung chan [Tue, 23 Sep 2014 10:35:13 +0000 (19:35 +0900)]
Add a unit test for locale.friendly_number
Lee Kyoung chan [Tue, 23 Sep 2014 10:13:22 +0000 (19:13 +0900)]
Improve test_format_date
Lee Kyoung chan [Tue, 23 Sep 2014 08:46:24 +0000 (17:46 +0900)]
Add a unit test for tornado.web.RedirectHandler
Ben Darnell [Sun, 21 Sep 2014 16:25:11 +0000 (12:25 -0400)]
curl_httpclient: run streaming and header callbacks on the IOLoop.
This ensures a more consistent execution environment and allows
a streaming or header callback to invoke other CurlAsyncHTTPClient
methods.
This change also fills in HTTPResponse.headers even when a header_callback
is used, similar to simple_httpclient's behavior.
Closes #1188.
Ben Darnell [Sun, 21 Sep 2014 16:18:16 +0000 (12:18 -0400)]
Move static functions in curl_httpclient to methods of CurlAsyncHTTPClient.
No functional changes in this commit, just code movement.
Ben Darnell [Sun, 21 Sep 2014 16:06:00 +0000 (12:06 -0400)]
Document Tornado's incompatibility with asyncio.ProactorEventLoop.
Closes #1201.
Ben Darnell [Thu, 18 Sep 2014 02:04:29 +0000 (22:04 -0400)]
Merge pull request #1197 from Parkayun/master
Remove unused module in tornado.platform.asyncio
Ben Darnell [Tue, 16 Sep 2014 12:37:55 +0000 (08:37 -0400)]
Merge pull request #1194 from leekchan/test_if_modified_since
Add a test for if_modified_since parameter of httpclient.HTTPRequest
Lee Kyoung chan [Tue, 16 Sep 2014 07:48:34 +0000 (16:48 +0900)]
Add a test for if_modified_since parameter of httpclient.HTTPRequest
Parkayun [Tue, 16 Sep 2014 06:43:06 +0000 (15:43 +0900)]
Remove unused module in tornado.platform.asyncio
Ben Darnell [Tue, 16 Sep 2014 02:26:48 +0000 (22:26 -0400)]
Merge remote-tracking branch 'leekchan/set_cookie_expires_days'
Conflicts:
tornado/test/web_test.py
Lee Kyoung chan [Tue, 16 Sep 2014 02:08:07 +0000 (11:08 +0900)]
Fixed test_set_cookie_expires_days
Ben Darnell [Mon, 15 Sep 2014 23:38:20 +0000 (19:38 -0400)]
Merge pull request #1189 from Parkayun/master
Add few tests and remove unused module.
Parkayun [Mon, 15 Sep 2014 10:10:37 +0000 (19:10 +0900)]
remove unused module in test
Parkayun [Mon, 15 Sep 2014 09:54:48 +0000 (18:54 +0900)]
Add test for httputil.parse_requset_start_line
Parkayun [Mon, 15 Sep 2014 06:55:35 +0000 (15:55 +0900)]
add test for util.timedelta_to_seconds
Ben Darnell [Mon, 15 Sep 2014 03:55:59 +0000 (23:55 -0400)]
Update example for HTTPClient exception handling.
Eliminate the implication that HTTPError is the only
error that can be raised. See #1168.
Ben Darnell [Mon, 15 Sep 2014 03:02:32 +0000 (23:02 -0400)]
Handle multiple exceptions in AsyncTestCase.
Previously we would silently swallow all but the last; now we
raise the first and log all the rest.
Closes #1177.
Ben Darnell [Mon, 15 Sep 2014 03:11:24 +0000 (23:11 -0400)]
Merge pull request #1175 from virtuald/coroutine-warning
Add documentation warning about exceptions in coroutines
Ben Darnell [Mon, 15 Sep 2014 02:39:03 +0000 (22:39 -0400)]
Ben Darnell [Mon, 15 Sep 2014 02:38:14 +0000 (22:38 -0400)]
Capture stack context in gen.engine's wrapper function.
This was an error that went unnoticed in earlier versions
because Futures passed through exceptions in their callbacks.
Ben Darnell [Mon, 15 Sep 2014 02:02:27 +0000 (22:02 -0400)]
Merge branch 'branch4.0'
Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
Ben Darnell [Sun, 14 Sep 2014 13:40:26 +0000 (09:40 -0400)]
Merge pull request #1185 from leekchan/master
Added unit tests for tornado.web.removeslash and tornado.web.addslash
Lee Kyoung chan [Sun, 14 Sep 2014 13:22:24 +0000 (22:22 +0900)]
Added a unit test for setting a cookie with expires_days
Lee Kyoung chan [Sun, 14 Sep 2014 09:47:10 +0000 (18:47 +0900)]
Fixed some typos
Lee Kyoung chan [Sun, 14 Sep 2014 04:01:49 +0000 (13:01 +0900)]
Added unit tests for tornado.web.removeslash and tornado.web.addslash
Ben Darnell [Sat, 13 Sep 2014 21:44:55 +0000 (17:44 -0400)]
Merge pull request #1179 from leekchan/master
Added a unit test for setting a cookie with max_age
Ben Darnell [Fri, 12 Sep 2014 13:20:54 +0000 (09:20 -0400)]
Merge pull request #1182 from Parkayun/master
Add test for tornado.escape.recursive_unicode
Neilen Marais [Fri, 12 Sep 2014 11:38:48 +0000 (13:38 +0200)]
Add callback error handling to Future
Catches and logs to the application log exceptions raised by each callback. This
more or less mirrors what concurrent.futures.Future does.
Parkayun [Fri, 12 Sep 2014 07:24:02 +0000 (16:24 +0900)]
Add test for tornado.escape.recursive_unicode
Lee Kyoung chan [Thu, 11 Sep 2014 13:16:44 +0000 (22:16 +0900)]
Added a unit test for setting a cookie with max_age
Ben Darnell [Thu, 11 Sep 2014 12:51:32 +0000 (08:51 -0400)]
Merge pull request #1178 from leekchan/master
Fixed some typos
Lee Kyoung chan [Thu, 11 Sep 2014 11:49:05 +0000 (20:49 +0900)]
Added a unit test for tornado.escape.squeeze
Lee Kyoung chan [Thu, 11 Sep 2014 05:37:43 +0000 (14:37 +0900)]
Fixed some typos
Ben Darnell [Thu, 11 Sep 2014 03:47:51 +0000 (23:47 -0400)]
Set version number to 4.0.2
Dustin Spicuzza [Fri, 5 Sep 2014 15:57:15 +0000 (11:57 -0400)]
Add documentation warning about exceptions in coroutines
Ben Darnell [Mon, 1 Sep 2014 15:12:27 +0000 (11:12 -0400)]
Add release notes for 4.0.2.
Ben Darnell [Mon, 1 Sep 2014 03:33:28 +0000 (23:33 -0400)]
Fix an erroneous return of None in IOStream.connect.
This causes AttributeErrors in TCPClient, although I can only
reproduce this case reliably on freebsd.
Closes #1168.
Ben Darnell [Sun, 31 Aug 2014 02:52:54 +0000 (22:52 -0400)]
Limit the number of connections we will accept per call to accept_handler.
This ensures that other callbacks scheduled on the IOLoop have a chance
to run. This shows up as increased memory usage in benchmark scenarios
(since 4.0 allowed simple http transactions to be processed synchronously).
Ben Darnell [Sat, 30 Aug 2014 19:27:31 +0000 (15:27 -0400)]
Fix a subtle reference cycle that can lead to increased memory consumption.
Closes #1165.
Eddie Mishelevich [Tue, 26 Aug 2014 14:04:06 +0000 (17:04 +0300)]
Add missing argument max_buffer_size to TCPClient.connect in SimpleAsyncHTTPClient
Ben Darnell [Mon, 1 Sep 2014 03:33:28 +0000 (23:33 -0400)]
Fix an erroneous return of None in IOStream.connect.
This causes AttributeErrors in TCPClient, although I can only
reproduce this case reliably on freebsd.
Closes #1168.
Ben Darnell [Mon, 1 Sep 2014 03:32:41 +0000 (23:32 -0400)]
Modernize freebsd vagrant config.
Ben Darnell [Sun, 31 Aug 2014 02:52:54 +0000 (22:52 -0400)]
Limit the number of connections we will accept per call to accept_handler.
This ensures that other callbacks scheduled on the IOLoop have a chance
to run. This shows up as increased memory usage in benchmark scenarios
(since 4.0 allowed simple http transactions to be processed synchronously).
Ben Darnell [Sat, 30 Aug 2014 19:27:31 +0000 (15:27 -0400)]
Fix a subtle reference cycle that can lead to increased memory consumption.
Closes #1165.
Ben Darnell [Wed, 27 Aug 2014 02:42:14 +0000 (22:42 -0400)]
Reinstate the bytes_type alias in case anyone is depending on it.
Ben Darnell [Wed, 27 Aug 2014 02:39:50 +0000 (22:39 -0400)]
Merge pull request #1166 from quatrix/master
Add missing argument max_buffer_size to TCPClient.connect in SimpleAsyncHTTPClient
Eddie Mishelevich [Tue, 26 Aug 2014 14:04:06 +0000 (17:04 +0300)]
Add missing argument max_buffer_size to TCPClient.connect in SimpleAsyncHTTPClient
Ben Darnell [Tue, 26 Aug 2014 02:56:38 +0000 (22:56 -0400)]
Merge pull request #1162 from methane/remove-bytes-type
Replace tornado.util.bytes_type to bytes
INADA Naoki [Mon, 25 Aug 2014 05:56:49 +0000 (14:56 +0900)]
Replace tornado.util.bytes_type to bytes
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.
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 [Sun, 24 Aug 2014 16:00:49 +0000 (12:00 -0400)]
Set version number in branch4.0 to 4.0.2.dev1
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.