]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
10 years agoSmall documentation fix: "Google OpenID" -> "Google OAuth". 1388/head
Arik Fraimovich [Wed, 18 Mar 2015 13:51:40 +0000 (15:51 +0200)] 
Small documentation fix: "Google OpenID" -> "Google OAuth".

10 years agoAdd an FAQ page. branch4.1
Ben Darnell [Wed, 4 Mar 2015 05:01:05 +0000 (00:01 -0500)] 
Add an FAQ page.

10 years agoFix the doc build.
Ben Darnell [Wed, 4 Mar 2015 03:51:17 +0000 (22:51 -0500)] 
Fix the doc build.

Readthedocs' mirror of python's intersphinx index appears to
be gone.

10 years agoSet version number to 4.1 v4.1.0
Ben Darnell [Sat, 7 Feb 2015 17:47:11 +0000 (12:47 -0500)] 
Set version number to 4.1

10 years agoFinalize 4.1 release notes.
Ben Darnell [Sat, 7 Feb 2015 17:46:33 +0000 (12:46 -0500)] 
Finalize 4.1 release notes.

10 years agoSet version number to 4.1b2 v4.1.0b2
Ben Darnell [Sun, 1 Feb 2015 19:27:54 +0000 (14:27 -0500)] 
Set version number to 4.1b2

10 years agoUpdate docs for UIModule.
Ben Darnell [Sun, 1 Feb 2015 19:17:25 +0000 (14:17 -0500)] 
Update docs for UIModule.

10 years agoUse self.io_loop in with_timeout tests.
A. Jesse Jiryu Davis [Fri, 30 Jan 2015 20:08:08 +0000 (15:08 -0500)] 
Use self.io_loop in with_timeout tests.

10 years agoSilence a warning on freebsd.
Ben Darnell [Sun, 1 Feb 2015 15:52:30 +0000 (10:52 -0500)] 
Silence a warning on freebsd.

This was already changed for other platforms but the error behaves
a bit differently on freebsd.

10 years agoMerge branch 'master' of github.com:tornadoweb/tornado
Ben Darnell [Sun, 1 Feb 2015 04:00:20 +0000 (23:00 -0500)] 
Merge branch 'master' of github.com:tornadoweb/tornado

10 years agoDisable twisted_web tests on python 3.
Ben Darnell [Sun, 1 Feb 2015 03:52:07 +0000 (22:52 -0500)] 
Disable twisted_web tests on python 3.

The twisted.web modules are importable as of Twisted 15.0.0,
but appear to still have internal str/bytes issues.

10 years agoMerge pull request #1319 from hfaran/patch-1
Ben Darnell [Fri, 30 Jan 2015 17:15:17 +0000 (12:15 -0500)] 
Merge pull request #1319 from hfaran/patch-1

Add syntax highlighting to Hello World example

10 years agoFix a DeprecationWarning in twisted_test with Twisted 15.0.
Ben Darnell [Fri, 30 Jan 2015 16:49:34 +0000 (11:49 -0500)] 
Fix a DeprecationWarning in twisted_test with Twisted 15.0.

10 years agoAdd syntax highlighting to Hello World example 1319/head
Hamza Faran [Fri, 30 Jan 2015 10:47:16 +0000 (02:47 -0800)] 
Add syntax highlighting to Hello World example

10 years agoMerge branch 'stable'
Ben Darnell [Sun, 25 Jan 2015 15:44:11 +0000 (10:44 -0500)] 
Merge branch 'stable'

10 years agoMerge pull request #1312 from FreeAquar/patch-1
Ben Darnell [Sun, 25 Jan 2015 15:35:59 +0000 (10:35 -0500)] 
Merge pull request #1312 from FreeAquar/patch-1

a wrong describle

10 years agoa wrong describle 1312/head
FreeAquar [Sun, 25 Jan 2015 09:01:47 +0000 (17:01 +0800)] 
a wrong describle

10 years agoReplace most testing uses of 'localhost' with '127.0.0.1'.
Ben Darnell [Sun, 25 Jan 2015 00:50:04 +0000 (19:50 -0500)] 
Replace most testing uses of 'localhost' with '127.0.0.1'.

This may work around a suspected ipv6-related issue on travis.

10 years agoInclude the ability to yield asyncio and twisted objects in highlights
Ben Darnell [Sun, 25 Jan 2015 00:21:34 +0000 (19:21 -0500)] 
Include the ability to yield asyncio and twisted objects in highlights

10 years agoSet version number to 4.1b1 v4.1.0b1
Ben Darnell [Sun, 25 Jan 2015 00:12:08 +0000 (19:12 -0500)] 
Set version number to 4.1b1

10 years agoFix doc coverage for WaitIterator.
Ben Darnell [Sat, 24 Jan 2015 23:38:18 +0000 (18:38 -0500)] 
Fix doc coverage for WaitIterator.

10 years agoClean up release notes
Ben Darnell [Sat, 24 Jan 2015 23:35:18 +0000 (18:35 -0500)] 
Clean up release notes

10 years agoUpdate release notes and docs.
Ben Darnell [Sat, 24 Jan 2015 23:18:09 +0000 (18:18 -0500)] 
Update release notes and docs.

10 years agoMerge remote-tracking branch 'Caligatio/ws_message_callback'
Ben Darnell [Sat, 24 Jan 2015 22:29:03 +0000 (17:29 -0500)] 
Merge remote-tracking branch 'Caligatio/ws_message_callback'

Conflicts:
tornado/websocket.py

10 years agoGive curl_httpclient its own logger for its verbose debug output.
Ben Darnell [Sat, 24 Jan 2015 22:14:20 +0000 (17:14 -0500)] 
Give curl_httpclient its own logger for its verbose debug output.

This makes it easier to filter it separately.

This commit is an updated recreation of
https://github.com/SuminAndrew/tornado/commit/88809314e853fb69610cf44095612e78b0882c3e
to account for code movement.

Closes #1093.

10 years agoMerge pull request #1286 from vovanec/patch-1
Ben Darnell [Sat, 24 Jan 2015 22:06:34 +0000 (17:06 -0500)] 
Merge pull request #1286 from vovanec/patch-1

Added support for custom web socket protocols.

10 years agoIntroduce gen.sleep().
Ben Darnell [Mon, 19 Jan 2015 20:38:59 +0000 (15:38 -0500)] 
Introduce gen.sleep().

Closes #1146.

10 years agoSingledispatch and twisted don't work well together on py26.
Ben Darnell [Mon, 19 Jan 2015 18:50:12 +0000 (13:50 -0500)] 
Singledispatch and twisted don't work well together on py26.

Only install singledispatch on py27.

10 years agoDocument convert_yielded.
Ben Darnell [Mon, 19 Jan 2015 17:34:19 +0000 (12:34 -0500)] 
Document convert_yielded.

10 years agoAdd bidirectional asyncio future conversion.
Ben Darnell [Mon, 19 Jan 2015 16:43:52 +0000 (11:43 -0500)] 
Add bidirectional asyncio future conversion.

10 years agoAdd a convert_yield adapter for twisted Deferreds.
Ben Darnell [Mon, 19 Jan 2015 16:20:45 +0000 (11:20 -0500)] 
Add a convert_yield adapter for twisted Deferreds.

10 years agoDocument the AsyncIOLoop.asyncio_loop attribute for public use.
Ben Darnell [Mon, 19 Jan 2015 15:20:33 +0000 (10:20 -0500)] 
Document the AsyncIOLoop.asyncio_loop attribute for public use.

10 years agoUse functools.singledispatch for convert_yielded when available.
Ben Darnell [Mon, 19 Jan 2015 04:54:41 +0000 (23:54 -0500)] 
Use functools.singledispatch for convert_yielded when available.

Register a converter for asyncio.Future and add tests.

10 years agoRefactor coroutine yield handling.
Ben Darnell [Mon, 19 Jan 2015 03:54:34 +0000 (22:54 -0500)] 
Refactor coroutine yield handling.

Extract a convert_yielded function that can be extended with other types.

10 years agoCall the WebSocketHandler.on_close method regardless of which side closed.
Ben Darnell [Mon, 19 Jan 2015 01:40:09 +0000 (20:40 -0500)] 
Call the WebSocketHandler.on_close method regardless of which side closed.

Closes #1173.

10 years agoConvert WaitIterator to use while-like iteration instead of for-like.
Ben Darnell [Sun, 18 Jan 2015 22:06:53 +0000 (17:06 -0500)] 
Convert WaitIterator to use while-like iteration instead of for-like.

Make current_future and current_index attributes instead of methods.
Restructure the internals to avoid quadratic performance.

10 years agoFix test; cleanup whitespace.
Ben Darnell [Sun, 18 Jan 2015 21:33:11 +0000 (16:33 -0500)] 
Fix test; cleanup whitespace.

10 years agoMerge remote-tracking branch 'jordanbettis/feature-waitany' into wait-any
Ben Darnell [Sun, 18 Jan 2015 21:28:46 +0000 (16:28 -0500)] 
Merge remote-tracking branch 'jordanbettis/feature-waitany' into wait-any

10 years agoWork around an occasional EPROTOTYPE error on OSX.
Ben Darnell [Sun, 18 Jan 2015 21:20:55 +0000 (16:20 -0500)] 
Work around an occasional EPROTOTYPE error on OSX.

10 years agoFix broken link in docs.
Ben Darnell [Sun, 18 Jan 2015 18:33:45 +0000 (13:33 -0500)] 
Fix broken link in docs.

10 years agoA new IOLoop is automatically "current" if there isn't already one.
Ben Darnell [Sun, 18 Jan 2015 18:13:41 +0000 (13:13 -0500)] 
A new IOLoop is automatically "current" if there isn't already one.

IOLoop keyword arguments throughout the library are now deprecated
in favor of IOLoop.current(). This is because the gen module
uses IOLoop.current() with no opportunity to pass in a different
instance, making it impossible in some cases to use a non-current
IOLoop with AsyncHTTPClient.

Closes #1252.

10 years agoUpdate next-release notes.
Ben Darnell [Sun, 18 Jan 2015 17:17:35 +0000 (12:17 -0500)] 
Update next-release notes.

10 years agoAdd a blanket try/except when parsing multipart form bodies.
Ben Darnell [Sun, 18 Jan 2015 17:07:54 +0000 (12:07 -0500)] 
Add a blanket try/except when parsing multipart form bodies.

This mirrors the behavior for form-urlencoded bodies, as well as the
handling of selected errors in parse_multipart_form_data.

Closes #1267.

10 years agoDocument PeriodicCallback.is_running.
Ben Darnell [Sun, 18 Jan 2015 16:35:20 +0000 (11:35 -0500)] 
Document PeriodicCallback.is_running.

10 years agoMerge pull request #1303 from ami-GS/external
Ben Darnell [Sun, 18 Jan 2015 16:34:26 +0000 (11:34 -0500)] 
Merge pull request #1303 from ami-GS/external

add is_running to get PeriodicCallback state

10 years agoPrevent a double-timeout in TCPClient.
Ben Darnell [Sun, 18 Jan 2015 16:31:26 +0000 (11:31 -0500)] 
Prevent a double-timeout in TCPClient.

This fixes a non-deterministic failure in the tests.
Also fix another less-common failure in test.util.refusing_port.

10 years agoadd is_running to get callback state 1303/head
Daiki Aminaka [Sun, 18 Jan 2015 08:58:54 +0000 (17:58 +0900)] 
add is_running to get callback state

10 years agoAllow SSLError or socket.error in this test.
Ben Darnell [Sat, 17 Jan 2015 22:38:35 +0000 (17:38 -0500)] 
Allow SSLError or socket.error in this test.

10 years agoFix LogCounter on py26
Ben Darnell [Sat, 17 Jan 2015 22:25:15 +0000 (17:25 -0500)] 
Fix LogCounter on py26

10 years agoFix another unexamined Future
Ben Darnell [Sat, 17 Jan 2015 21:43:37 +0000 (16:43 -0500)] 
Fix another unexamined Future

10 years agoMerge branch 'log_future'
Ben Darnell [Sat, 17 Jan 2015 21:39:29 +0000 (16:39 -0500)] 
Merge branch 'log_future'

10 years agoConsider the tests failed if they log any non-filtered warnings or errors.
Ben Darnell [Sat, 17 Jan 2015 21:37:49 +0000 (16:37 -0500)] 
Consider the tests failed if they log any non-filtered warnings or errors.

10 years agoLog more uncaught exceptions instead of suppressing them.
Ben Darnell [Sat, 17 Jan 2015 20:26:03 +0000 (15:26 -0500)] 
Log more uncaught exceptions instead of suppressing them.

Add more docs about Future exception logging.

10 years agotravis-ci: don't install pycurl on pypy3.
Ben Darnell [Fri, 16 Jan 2015 03:53:08 +0000 (22:53 -0500)] 
travis-ci: don't install pycurl on pypy3.

10 years agoMerge pull request #1299 from ysimonson/feature/ignore-xsrf-errors
Ben Darnell [Fri, 16 Jan 2015 03:37:03 +0000 (22:37 -0500)] 
Merge pull request #1299 from ysimonson/feature/ignore-xsrf-errors

Handle bad xsrf tokens more gracefully

10 years agoMerge commit 'bbd1f9'
Ben Darnell [Wed, 14 Jan 2015 13:59:21 +0000 (08:59 -0500)] 
Merge commit 'bbd1f9'

Conflicts:
.travis.yml

10 years agoAddressed comments from Ben 1286/head
vovanec [Mon, 12 Jan 2015 16:06:44 +0000 (08:06 -0800)] 
Addressed comments from Ben

Addressed comments from Ben. Added get_websocket_protocol() to WebSocketClientConnection class as well.

10 years agoMore aggressive capturing of xsrf cookie errors 1299/head
Yusuf Simonson [Mon, 12 Jan 2015 15:45:52 +0000 (10:45 -0500)] 
More aggressive capturing of xsrf cookie errors

10 years agoMake Application.start_request match HTTPServerConnectionDelegate.start_request.
Ben Darnell [Mon, 12 Jan 2015 03:22:16 +0000 (22:22 -0500)] 
Make Application.start_request match HTTPServerConnectionDelegate.start_request.

This was always intended, but unfortunately the change to HTTPServer
is backwards-incompatible.

10 years agoMerge pull request #1270 from djvis/master
Ben Darnell [Mon, 12 Jan 2015 01:15:36 +0000 (20:15 -0500)] 
Merge pull request #1270 from djvis/master

Use server_hostname parameter in call to ssl_wrap_socket

10 years agoCatch up on next-release notes.
Ben Darnell [Sun, 11 Jan 2015 23:58:53 +0000 (18:58 -0500)] 
Catch up on next-release notes.

10 years agoCorrect handling of HTTP version numbers.
Ben Darnell [Sun, 11 Jan 2015 18:50:58 +0000 (13:50 -0500)] 
Correct handling of HTTP version numbers.

Per RFC 7230 section 2.6, we always output HTTP/1.1 even if the
request was HTTP/1.0 (and we accept any 1.x version).

10 years agoFix regression in support for both CRLF and bare LF in headers.
Ben Darnell [Sun, 11 Jan 2015 18:29:57 +0000 (13:29 -0500)] 
Fix regression in support for both CRLF and bare LF in headers.

Closes #1297.

10 years agoFix httputil_test on python 3.2.
Ben Darnell [Sun, 11 Jan 2015 18:00:00 +0000 (13:00 -0500)] 
Fix httputil_test on python 3.2.

10 years agoFix header parsing with unicode newline-like characters.
Ben Darnell [Sun, 11 Jan 2015 17:40:51 +0000 (12:40 -0500)] 
Fix header parsing with unicode newline-like characters.

We were using python's unicode.splitlines(), which recognizes
more characters than just CRLF and could cause problems if those
characters appeared in header values.

Fixes #1291.

10 years agoRefactor connection-closed tests.
Ben Darnell [Sun, 11 Jan 2015 16:21:42 +0000 (11:21 -0500)] 
Refactor connection-closed tests.

On CI servers, port numbers get reused frequently, so a closed
port cannot be relied upon to refuse connections for long.
We now use an open client-side socket's ephemeral port,
which will always refuse connections and cannot be reused
for as log as the socket is open.

10 years agoMerge pull request #1296 from asvetlov/master
Ben Darnell [Sun, 11 Jan 2015 15:29:36 +0000 (10:29 -0500)] 
Merge pull request #1296 from asvetlov/master

Mention in Sec-WebSocket-Version all versions supported by tornado

10 years agoMerge pull request #1294 from lmas/master
Ben Darnell [Sun, 11 Jan 2015 15:27:07 +0000 (10:27 -0500)] 
Merge pull request #1294 from lmas/master

Fixed TCPServer not setting the correct read_chunk_size.

10 years agoMerge pull request #1285 from lwzm/master
Ben Darnell [Sat, 10 Jan 2015 16:11:30 +0000 (11:11 -0500)] 
Merge pull request #1285 from lwzm/master

Ensure that HTTPServerRequest.body is a byte string

10 years agoClarify docs: `return` in generator is new in 3.3.
Ben Darnell [Sat, 10 Jan 2015 15:47:19 +0000 (10:47 -0500)] 
Clarify docs: `return` in generator is new in 3.3.

10 years agoMerge pull request #1300 from arihantagarwal/arihant
Ben Darnell [Sat, 10 Jan 2015 15:08:46 +0000 (10:08 -0500)] 
Merge pull request #1300 from arihantagarwal/arihant

Changed 'return' to 'raise gen.Return()' to fix Issue #1292

10 years agoChanged 'return' to 'raise gen.Return()' to fix Issue #1292, explanation added. 1300/head
Arihant Agarwal [Sat, 10 Jan 2015 06:02:24 +0000 (11:32 +0530)] 
Changed 'return' to 'raise gen.Return()' to fix Issue #1292, explanation added.

10 years agoHandle bad xsrf tokens more gracefully
Yusuf Simonson [Wed, 7 Jan 2015 16:01:55 +0000 (11:01 -0500)] 
Handle bad xsrf tokens more gracefully

10 years agoMention in Sec-WebSocket-Version all versions supported by tornado 1296/head
Andrew Svetlov [Mon, 5 Jan 2015 19:15:40 +0000 (21:15 +0200)] 
Mention in Sec-WebSocket-Version all versions supported by tornado
 As RFC 6455 recommends for asnwer for unsopported protocol.

10 years agoFixed TCPServer not setting the correct read_chunk_size. 1294/head
A. Svensson [Sun, 4 Jan 2015 10:33:17 +0000 (11:33 +0100)] 
Fixed TCPServer not setting the correct read_chunk_size.

10 years agoAdded support for custom web socket protocols.
vovanec [Wed, 24 Dec 2014 19:43:00 +0000 (11:43 -0800)] 
Added support for custom web socket protocols.

Added support for custom web socket protocols.

To add custom protocol implementation user should override get_websocket_protocol_subclass() method in WebSocketHandler subclass.

10 years agoEnsure that HTTPServerRequest.body is a byte string 1285/head
felloak [Tue, 23 Dec 2014 08:28:36 +0000 (16:28 +0800)] 
Ensure that HTTPServerRequest.body is a byte string

HTTPServerRequest.body should be bytes but it is an empty string that
occurs in Python3 when pass no body to HTTPServerRequest.

10 years agoSkip test if check_hostname functionality not available 1270/head
Daniel James Visentin [Tue, 23 Dec 2014 01:34:04 +0000 (12:34 +1100)] 
Skip test if check_hostname functionality not available

10 years agoAdd test to ensure stream start_tls calls use the server_hostname parameter
Daniel James Visentin [Tue, 23 Dec 2014 01:09:48 +0000 (12:09 +1100)] 
Add test to ensure stream start_tls calls use the server_hostname parameter

10 years agoMerge pull request #1281 from nordaux/master
Ben Darnell [Thu, 18 Dec 2014 15:16:18 +0000 (10:16 -0500)] 
Merge pull request #1281 from nordaux/master

Fixed error that the web.asynchronous doesn't complete python3 concurrent.Futures

10 years agoFixed error that the web.asynchronous doesn't complete python3 concurrent.Futures 1281/head
Andrew Glinskiy [Thu, 18 Dec 2014 14:38:20 +0000 (16:38 +0200)] 
Fixed error that the web.asynchronous doesn't complete python3 concurrent.Futures

10 years agoMerge pull request #1279 from chrisseto/patch-1
Ben Darnell [Wed, 17 Dec 2014 16:09:16 +0000 (11:09 -0500)] 
Merge pull request #1279 from chrisseto/patch-1

Fix typo in `stream_request_body`

10 years agoFix typo in `stream_request_body` 1279/head
Chris Seto [Wed, 17 Dec 2014 15:55:05 +0000 (10:55 -0500)] 
Fix typo in `stream_request_body`

10 years agoMerge pull request #1261 from lilydjwg/fix-ipv6-host
Ben Darnell [Tue, 16 Dec 2014 02:22:52 +0000 (21:22 -0500)] 
Merge pull request #1261 from lilydjwg/fix-ipv6-host

fix matching an IPv6 address as host

10 years agomove code to seperate function 'split_host_and_port' 1261/head
依云 [Sun, 14 Dec 2014 10:12:26 +0000 (18:12 +0800)] 
move code to seperate function 'split_host_and_port'

10 years agoremove executable permission from tornado.web
依云 [Sun, 14 Dec 2014 10:01:26 +0000 (18:01 +0800)] 
remove executable permission from tornado.web

10 years agoMerge branch 'master' into fix-ipv6-host
依云 [Sun, 14 Dec 2014 10:00:08 +0000 (18:00 +0800)] 
Merge branch 'master' into fix-ipv6-host

10 years agoMerge pull request #1268 from schlamar/win-timeout
Ben Darnell [Fri, 12 Dec 2014 15:17:32 +0000 (10:17 -0500)] 
Merge pull request #1268 from schlamar/win-timeout

fix test_request_timeout on Windows

10 years agotox: add optional pyxx-no-ext environments 1268/head
Marc Schlaich [Fri, 12 Dec 2014 07:31:13 +0000 (08:31 +0100)] 
tox: add optional pyxx-no-ext environments

These can be run on systems without an available C compiler.

10 years agofix test_request_timeout on Windows by increasing timeout
Marc Schlaich [Wed, 10 Dec 2014 15:18:30 +0000 (16:18 +0100)] 
fix test_request_timeout on Windows by increasing timeout

10 years agoAdd support for Future.exc_info when logging abandoned futures.
Ben Darnell [Thu, 11 Dec 2014 14:24:54 +0000 (09:24 -0500)] 
Add support for Future.exc_info when logging abandoned futures.

Simplify some Future internals.

Add enough magic calls to Future.exception that the test suite
passes without warning (at least on py34)

10 years agoUse server_hostname parameter in call to ssl_wrap_socket
Daniel James Visentin [Thu, 11 Dec 2014 00:01:40 +0000 (11:01 +1100)] 
Use server_hostname parameter in call to ssl_wrap_socket

10 years agoMerge branch 'master' into log_future
Ben Darnell [Tue, 9 Dec 2014 04:30:17 +0000 (23:30 -0500)] 
Merge branch 'master' into log_future

10 years agoMerge pull request #1258 from tdyas/no_raise_error
Ben Darnell [Sat, 6 Dec 2014 02:20:18 +0000 (21:20 -0500)] 
Merge pull request #1258 from tdyas/no_raise_error

http client: option to not raise errors

10 years agoMerge pull request #1264 from nbargnesi/master
Ben Darnell [Fri, 5 Dec 2014 14:51:00 +0000 (09:51 -0500)] 
Merge pull request #1264 from nbargnesi/master

swap platform.system() for sys.platform

10 years agoswap platform.system() for sys.platform; #1263 1264/head
Nick Bargnesi [Fri, 5 Dec 2014 06:37:45 +0000 (01:37 -0500)] 
swap platform.system() for sys.platform; #1263

10 years agoMerge pull request #1260 from lilydjwg/no-handler-redirect
Ben Darnell [Sun, 30 Nov 2014 17:34:56 +0000 (12:34 -0500)] 
Merge pull request #1260 from lilydjwg/no-handler-redirect

use the same protocol when redirecting to default host

10 years agouse the same protocol when redirecting to default host 1260/head
依云 [Tue, 25 Nov 2014 13:45:45 +0000 (21:45 +0800)] 
use the same protocol when redirecting to default host

10 years agofix matching a IPv6 address as host
依云 [Tue, 25 Nov 2014 13:36:28 +0000 (21:36 +0800)] 
fix matching a IPv6 address as host

When the host is something like '[::1]' or '[::1]:8080',
_get_host_handlers gets wrong hosts string.

10 years agohttp client: option to not raise errors 1258/head
Tom Dyas [Mon, 23 Jun 2014 18:21:46 +0000 (14:21 -0400)] 
http client: option to not raise errors

Pass raise_error=False to the fetch method to disable the raising of
HTTPError on errors.