]>
git.ipfire.org Git - thirdparty/tornado.git/log
Pierce Lopez [Thu, 29 Aug 2019 02:56:31 +0000 (22:56 -0400)]
httputil.parse_body_arguments: allow incomplete url-escaping
support x-www-form-urlencoded body with values consisting of
encoded bytes which are not url-encoded into ascii
(it seems other web frameworks often support this)
add bytes qs support to escape.parse_qs_bytes,
leave str qs support for backwards compatibility
Pierce Lopez [Thu, 29 Aug 2019 03:34:54 +0000 (23:34 -0400)]
tests: replace remaining assertEquals() with assertEqual()
assertEquals() is deprecated, and python3.7/pytest can warn about it
Semen Zhydenko [Sun, 11 Aug 2019 23:44:12 +0000 (01:44 +0200)]
spelling corrections
* maintainance -> maintenance
* recieving -> receiving
Ben Darnell [Sun, 11 Aug 2019 23:43:01 +0000 (19:43 -0400)]
Merge pull request #2725 from bdarnell/ssl-win-py374
test: Disable TLS 1.3 in one test
Ben Darnell [Sun, 11 Aug 2019 02:00:41 +0000 (22:00 -0400)]
test: Disable TLS 1.3 in one test
This test started failing on windows CI with an upgrade to python
3.7.4 (which bundles a newer version of openssl). Disable tls 1.3 for
now.
Possibly related to #2536
Ben Darnell [Fri, 2 Aug 2019 14:38:08 +0000 (10:38 -0400)]
Merge pull request #2692 from mivade/docs-blog-example-update
Update database backend reference
Ben Darnell [Fri, 2 Aug 2019 13:44:11 +0000 (09:44 -0400)]
Merge pull request #2715 from mivade/template-optional-autoescape-typing
Mark Template autoescape kwarg as Optional
Ben Darnell [Fri, 2 Aug 2019 13:38:12 +0000 (09:38 -0400)]
Merge pull request #2707 from remram44/patch-1
Strip documentation about removed argument
Michael V. DePalatis [Fri, 26 Jul 2019 17:01:11 +0000 (11:01 -0600)]
Mark Template autoescape kwarg as Optional
Remi Rampin [Wed, 17 Jul 2019 21:50:19 +0000 (14:50 -0700)]
Strip documentation about removed argument
Michael V. DePalatis [Wed, 26 Jun 2019 15:35:20 +0000 (09:35 -0600)]
Update database backend reference
Ben Darnell [Sun, 23 Jun 2019 22:57:56 +0000 (18:57 -0400)]
Merge pull request #2687 from bdarnell/req-bump
Bump version of twisted to pick up security fix
Ben Darnell [Sun, 23 Jun 2019 22:57:45 +0000 (18:57 -0400)]
Merge pull request #2688 from bdarnell/relnotes603
Release notes for 6.0.3
Ben Darnell [Sat, 22 Jun 2019 17:06:50 +0000 (13:06 -0400)]
Release notes for 6.0.3
Ben Darnell [Sun, 23 Jun 2019 22:40:37 +0000 (18:40 -0400)]
Bump version of twisted to pick up security fix
Ben Darnell [Sat, 22 Jun 2019 18:50:36 +0000 (14:50 -0400)]
Merge pull request #2686 from bdarnell/docs-py38-windows
docs: Add notice about WindowsSelectorEventLoop on py38
Ben Darnell [Sat, 22 Jun 2019 18:39:38 +0000 (14:39 -0400)]
docs: Add notice about WindowsSelectorEventLoop on py38
Fixes #2608
Ben Darnell [Sat, 22 Jun 2019 17:08:36 +0000 (13:08 -0400)]
Merge pull request #2684 from bdarnell/socket-error
netutil: Ignore EADDRNOTAVAIL when binding to localhost ipv6
Ben Darnell [Sat, 22 Jun 2019 16:50:07 +0000 (12:50 -0400)]
test: Skip test_source_port_fail when running as root
Root is always allowed to bind to low port numbers, so we can't
simulate failure in this case. This is the last remaining failure when
running tests in docker.
Ben Darnell [Sat, 22 Jun 2019 16:45:57 +0000 (12:45 -0400)]
netutil: Ignore EADDRNOTAVAIL when binding to localhost ipv6
This happens in docker with default configurations and is generally
harmless.
Fixes #2274
Ben Darnell [Sat, 22 Jun 2019 15:38:50 +0000 (11:38 -0400)]
*: Modernize IO error handling
Where possible, replace use of errno with the exception hierarchy
available since python 3.3. Remove explicit handling of EINTR which
has been automatic since python 3.5
Ben Darnell [Sat, 22 Jun 2019 14:33:37 +0000 (10:33 -0400)]
Merge pull request #2683 from bdarnell/cancelledexception-py38
gen: Adapt to py38 CancelledError changes
Ben Darnell [Sat, 22 Jun 2019 13:42:09 +0000 (09:42 -0400)]
gen: Clean up docs for with_timeout
Mark CancelledError change as 6.0.3
Ben Darnell [Sat, 22 Jun 2019 00:42:11 +0000 (20:42 -0400)]
ci: Re-enable nightly python
Fixes #2677
Ben Darnell [Sat, 22 Jun 2019 00:32:39 +0000 (20:32 -0400)]
locks: Remove redundant CancelledError handling
CancelledError is now always considered "quiet" (and
concurrent.futures.CancelledError is no longer the same as
asyncio.CancelledError).
Ben Darnell [Sat, 22 Jun 2019 13:36:43 +0000 (09:36 -0400)]
Merge pull request #2681 from encukou/gen-ignore-cancel
gen.with_timeout: Don't log CancelledError after timeout
Petr Viktorin [Fri, 21 Jun 2019 11:52:04 +0000 (13:52 +0200)]
Fix ReST syntax
Petr Viktorin [Wed, 19 Jun 2019 16:09:17 +0000 (18:09 +0200)]
gen.with_timeout: Don't log CancelledError after timeout
See also: commit
a237a995a1d54ad6e07c1ecdf5103ff8f45073b5
Robin Roth [Mon, 17 Jun 2019 00:21:13 +0000 (02:21 +0200)]
mypy: Enable no_implicit_optional
"Implicit-optional" mode is on by default, but that default is intended to change in the indefinite future (python/peps#689, python/typing#275). Go ahead and change to the future explicit use of Optional.
Ben Darnell [Sun, 16 Jun 2019 14:06:57 +0000 (10:06 -0400)]
Merge pull request #2679 from ploxiln/curl_no_decompress
curl_httpclient: fix disabled decompress_response
Pierce Lopez [Fri, 14 Jun 2019 03:00:06 +0000 (23:00 -0400)]
tests: run test_gzip for curl_httpclient also
move simple_httpclient test_gzip to the shared httpclient tests,
to test the decompress_response option for curl_httpclient as well
Pierce Lopez [Wed, 12 Jun 2019 19:34:02 +0000 (15:34 -0400)]
curl_httpclient: fix disabled decompress_response
by setting None (NULL) instead of "none" for ENCODING
reported by Andrey Oparin <andrey@edsd.com>
Zachary Sailer [Sun, 9 Jun 2019 21:15:31 +0000 (14:15 -0700)]
iostream: check that stream is open before trying to read (#2670)
Ben Darnell [Sun, 9 Jun 2019 21:11:13 +0000 (17:11 -0400)]
Merge pull request #2673 from ploxiln/docs_build_quickfix
docs: conflict between sphinx-2.1, sphinxcontrib-asyncio
Pierce Lopez [Sat, 8 Jun 2019 19:10:26 +0000 (15:10 -0400)]
tests: allow failure on python nightly
seems to be due to a bunch of asyncio.exceptions.CancelledError
Pierce Lopez [Sat, 8 Jun 2019 19:10:12 +0000 (15:10 -0400)]
Revert "docs: remove sphinxcontrib-asyncio"
This reverts commit
71494a4db76b3ae458e5757d741bdd1aac255640 .
Pierce Lopez [Sat, 8 Jun 2019 19:02:57 +0000 (15:02 -0400)]
docs: remove sphinxcontrib-asyncio
no longer needed since Sphinx-2.1 (and effectively conflicts with it)
Pierce Lopez [Sat, 8 Jun 2019 18:44:11 +0000 (14:44 -0400)]
docs: build with sphinx < 2.1
sphinx 2.1 adds an ":async:" option for py:method:: and py:function::
and it does not seem to interact well with sphinxcontrib-asyncio
Ben Darnell [Sun, 5 May 2019 17:34:29 +0000 (13:34 -0400)]
Merge pull request #2653 from bdarnell/twisted-install
twisted: Restore the install() function
Ben Darnell [Sun, 5 May 2019 17:34:19 +0000 (13:34 -0400)]
Merge pull request #2654 from bdarnell/deps
Bump dependency versions, including mypy
Ben Darnell [Sun, 5 May 2019 15:50:34 +0000 (11:50 -0400)]
twisted: Restore the install() function
This function had more usage than I was aware of and we can preserve
the old behavior by making it an alias for asyncioreactor.install.
Fixes #2636
Ben Darnell [Sun, 5 May 2019 17:05:34 +0000 (13:05 -0400)]
deps: Bump mypy to 0.701
Ben Darnell [Sun, 5 May 2019 16:39:37 +0000 (12:39 -0400)]
maint: Bump maintainer requirements.txt versions
Drop autopep8, add sphinxcontrib-asyncio
Ben Darnell [Sat, 4 May 2019 18:24:05 +0000 (14:24 -0400)]
Merge pull request #2646 from m-burst/patch-1
Speedup headers parsing
Mikhail Burshteyn [Sat, 4 May 2019 08:16:18 +0000 (11:16 +0300)]
Speedup headers parsing
Replace `_CRLF_RE.split(headers)` with a simple `headers.split('\n')` with an additional check for `'\r'` in each line.
Add benchmark to measure performance impact of the change.
The benchmark results are as follows:
* split only: ~3x faster on CPython, 14-18x faster on PyPy
* full headers parse: ~1.3x faster on CPython, ~3-4.5x faster on PyPy
Ben Darnell [Mon, 29 Apr 2019 00:06:05 +0000 (20:06 -0400)]
Merge pull request #2649 from javabrett/2648-LogFormatter-CRITICAL-color
Added color for logging.CRITICAL = 5 (Magenta).
Ben Darnell [Sun, 28 Apr 2019 23:41:38 +0000 (19:41 -0400)]
Merge pull request #2650 from bdarnell/deprecation38
test: Silence a deprecation warning in py38+pycurl
Ben Darnell [Sun, 28 Apr 2019 23:31:52 +0000 (19:31 -0400)]
test: Silence a deprecation warning in py38+pycurl
Ben Darnell [Sun, 28 Apr 2019 23:31:22 +0000 (19:31 -0400)]
Merge pull request #2644 from Swixx/request-handler-get-accept-kwargs
Allow RequestHandler.get to accept **kwargs.
Brett Randall [Wed, 24 Apr 2019 03:36:37 +0000 (13:36 +1000)]
Added color for logging.CRITICAL = 5 (Magenta).
Fixed #2648.
Adam Sawicki [Mon, 22 Apr 2019 13:51:01 +0000 (09:51 -0400)]
Allow RequestHandler.get to accept **kwargs.
Ben Darnell [Sat, 23 Mar 2019 19:42:57 +0000 (15:42 -0400)]
Merge pull request #2631 from bdarnell/docs
Misc docs updates
Ben Darnell [Sat, 23 Mar 2019 18:02:21 +0000 (14:02 -0400)]
twisted: Remove outdated comments
Ben Darnell [Sat, 23 Mar 2019 17:57:41 +0000 (13:57 -0400)]
docs: Clarify platform support and add not-on-windows notes
We also picked up solaris /dev/poll support with the move to asyncio.
See #2622
Ben Darnell [Sat, 23 Mar 2019 16:18:20 +0000 (12:18 -0400)]
Release notes for 6.0.2
Ben Darnell [Sun, 3 Mar 2019 16:50:04 +0000 (11:50 -0500)]
Release notes for 6.0.1
Ben Darnell [Sat, 23 Mar 2019 15:38:23 +0000 (11:38 -0400)]
Merge pull request #2629 from bdarnell/httpresponse-no-body
httpclient: HTTPResponse.body returns empty string instead of raising
Ben Darnell [Sat, 23 Mar 2019 15:11:18 +0000 (11:11 -0400)]
httpclient: HTTPResponse.body returns empty string instead of raising
In tornado 5, HTTPResponse.body would return None if there was no body
buffer (which included errors like timeouts and socket errors, but not
HTTP errors like 404). In tornado 6 this was changed to never return
None (to make it easier to work with type annotations) and raise an
error instead. This turned out to be disruptive, so change it back to
returning a value without raising (but now it's an empty byte string
instead of None).
Fixes #2626
Ben Darnell [Sun, 10 Mar 2019 20:57:11 +0000 (16:57 -0400)]
Merge pull request #2613 from bdarnell/ws-nodelay
websocket: Fix set_nodelay
Ben Darnell [Sun, 3 Mar 2019 18:51:15 +0000 (13:51 -0500)]
websocket: Fix set_nodelay
This method was untested and broken in 6.0.0.
Fixes #2611
Ben Darnell [Tue, 5 Mar 2019 00:34:47 +0000 (19:34 -0500)]
Merge pull request #2614 from mivade/docs-twisted-version
Remove twisted version comment in module docstring
Michael V. DePalatis [Mon, 4 Mar 2019 22:25:11 +0000 (15:25 -0700)]
Remove twisted version comment in module docstring
Let the documentation in `TwistedResolver` specify the minimum
version.
Ben Darnell [Sun, 3 Mar 2019 18:45:57 +0000 (13:45 -0500)]
Merge pull request #2612 from bdarnell/download-script
Add script to download wheels from appveyor
Ben Darnell [Sun, 3 Mar 2019 18:37:39 +0000 (13:37 -0500)]
Add script to download wheels from appveyor
Ben Darnell [Sun, 3 Mar 2019 16:48:26 +0000 (11:48 -0500)]
Merge pull request #2606 from ploxiln/travis_update_xenial
travis-ci tests: always use dist xenial
Ben Darnell [Sun, 3 Mar 2019 16:07:41 +0000 (11:07 -0500)]
Merge pull request #2609 from fchapoton/patch-1
remove duplicate import of gettext
Frédéric Chapoton [Sun, 3 Mar 2019 10:54:48 +0000 (11:54 +0100)]
remove duplicate import of gettext
Pierce Lopez [Fri, 1 Mar 2019 20:22:14 +0000 (15:22 -0500)]
travis-ci tests: always use dist xenial
Travis-CI Trusty Container-based environment was available
between July, 2017 and December, 2018.
https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
Ben Darnell [Fri, 1 Mar 2019 21:17:52 +0000 (16:17 -0500)]
Merge pull request #2605 from bdarnell/python-352
Fix importability on python 3.5.2
Ben Darnell [Fri, 1 Mar 2019 20:03:31 +0000 (15:03 -0500)]
Fix importability on python 3.5.2
The "provisional" typing module in 3.5.2 is kind of broken/incomplete
so we need to use more forward references to avoid confusing it. The
significance of this version in particular is that it was the one
included in ubuntu 16.04.
Fixes #2604
Ben Darnell [Fri, 1 Mar 2019 16:04:38 +0000 (11:04 -0500)]
Merge pull request #2603 from bdarnell/version-bump
Bump master branch to 6.1.dev1
Ben Darnell [Fri, 1 Mar 2019 15:40:25 +0000 (10:40 -0500)]
Bump master branch to 6.1.dev1
Ben Darnell [Fri, 1 Mar 2019 15:11:52 +0000 (10:11 -0500)]
Merge pull request #2602 from bdarnell/version-6.0
Set version to 6.0
Ben Darnell [Fri, 1 Mar 2019 14:55:59 +0000 (09:55 -0500)]
Set version to 6.0
Ben Darnell [Sun, 10 Feb 2019 23:08:24 +0000 (18:08 -0500)]
Merge pull request #2588 from bdarnell/6.0b1
Set version to 6.0b1
Ben Darnell [Sun, 10 Feb 2019 22:30:08 +0000 (17:30 -0500)]
Set version to 6.0b1
Ben Darnell [Sat, 9 Feb 2019 21:57:04 +0000 (16:57 -0500)]
Merge pull request #2587 from bdarnell/opt
ioloop: Micro-optimize IOLoop.add_future
Ben Darnell [Sat, 9 Feb 2019 18:11:54 +0000 (13:11 -0500)]
Merge pull request #2586 from sadielbartholomew/minor-docs-improvements
docs: assorted minor e.g. formatting improvements
Ben Darnell [Sat, 9 Feb 2019 17:03:39 +0000 (12:03 -0500)]
Merge pull request #2580 from bdarnell/remove-log
httputil: Remove a noisy log line
Ben Darnell [Sat, 9 Feb 2019 17:02:32 +0000 (12:02 -0500)]
Merge pull request #2581 from bdarnell/websocket-open-catch
websocket: Catch errors in async open() correctly
Sadie Bartholomew [Sat, 9 Feb 2019 00:35:55 +0000 (00:35 +0000)]
Minor formatting & grammatical etc. edits to docs
Ben Darnell [Sun, 3 Feb 2019 23:01:53 +0000 (18:01 -0500)]
ioloop: Micro-optimize IOLoop.add_future
Asyncio Futures always schedule their callbacks on a future iteration
of the IOLoop, so routing the callbacks through IOLoop.add_callback
again was redundant and causing unnecessary delays in callback
execution.
Ben Darnell [Sat, 2 Feb 2019 18:44:56 +0000 (13:44 -0500)]
websocket: Catch errors in async open() correctly
Previously if open() was a coroutine and raised an error, the
connection would be left open.
Fixes #2570
Ben Darnell [Sat, 2 Feb 2019 17:41:03 +0000 (12:41 -0500)]
httputil: Downgrade a noisy log line
Only complain about unsupported content encodings if it's a
content-type we'd otherwise try to parse.
Fixes #2578
Ben Darnell [Mon, 21 Jan 2019 12:46:14 +0000 (07:46 -0500)]
Merge pull request #2566 from BoboTiG/fix-resource-leaks
Fix ResourceWarning: unclosed file
Mickaël Schoentgen [Sat, 5 Jan 2019 21:15:01 +0000 (22:15 +0100)]
Fix ResourceWarning: unclosed file
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
Ben Darnell [Wed, 2 Jan 2019 03:51:21 +0000 (22:51 -0500)]
Merge pull request #2565 from bdarnell/docs-6.0a1
Release notes for 6.0a1
Ben Darnell [Wed, 2 Jan 2019 03:44:33 +0000 (22:44 -0500)]
init: set version to 6.0a1
Ben Darnell [Wed, 2 Jan 2019 03:43:10 +0000 (22:43 -0500)]
setup: Don't repeat version number in setup.py
Ben Darnell [Wed, 2 Jan 2019 03:33:36 +0000 (22:33 -0500)]
docs: More 6.0 release notes
Ben Darnell [Tue, 1 Jan 2019 21:16:27 +0000 (16:16 -0500)]
First part of 6.0 release notes: note all deprecated removals
Ben Darnell [Tue, 1 Jan 2019 21:07:24 +0000 (16:07 -0500)]
docs: Update homepage for 6.0
Ben Darnell [Tue, 1 Jan 2019 18:02:51 +0000 (13:02 -0500)]
Merge pull request #2440 from bdarnell/validate-redirect
httpclient: Validate redirect location header and method
Ben Darnell [Tue, 1 Jan 2019 17:55:58 +0000 (12:55 -0500)]
simple_httpclient: Only convert POST requests to GETs on redirect
Convert POST to GET on 301 in addition to 302 and 303.
Ben Darnell [Tue, 1 Jan 2019 17:50:07 +0000 (12:50 -0500)]
http1connection: Fix a bug with redirects and chunked requests
After a redirect, the chunked-encoding header is already set and would
not be detected correctly. This affects empty bodies with
allow_nonstandard_methods and any use of body_producer.
Ben Darnell [Wed, 11 Jul 2018 02:32:57 +0000 (22:32 -0400)]
Revert "Revert "_HTTPConnection: check location on _should_follow_redirect() and retain safe request when following redirects (#2409)""
This reverts commit
dda77f2ca3365bd031a0c56dd19c8ed781a0695a .
Ben Darnell [Tue, 1 Jan 2019 15:38:12 +0000 (10:38 -0500)]
Merge pull request #2564 from bdarnell/queue-warning
queues: Add a note to Queue.get about difference from stdlib
Ben Darnell [Tue, 1 Jan 2019 15:29:22 +0000 (10:29 -0500)]
queues: Add a note to Queue.get about difference from stdlib
Tornado's interpretation of the timeout argument differs from the
stdlib's queue.
Fixes #2370
Ben Darnell [Sun, 30 Dec 2018 20:27:03 +0000 (15:27 -0500)]
Merge pull request #2563 from bdarnell/docs-update
docs: Various updates
Ben Darnell [Sun, 30 Dec 2018 19:55:14 +0000 (14:55 -0500)]
concurrent: Update docs