]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
4 years agogen: Expliclty track contextvars, fixing contextvars.reset 2938/head
Ben Darnell [Fri, 16 Oct 2020 19:29:20 +0000 (15:29 -0400)] 
gen: Expliclty track contextvars, fixing contextvars.reset

The asyncio event loop provides enough contextvars support out of the
box for basic contextvars functionality to work in tornado coroutines,
but not `contextvars.reset`. Prior to this change, each yield created
a new "level" of context, when an entire coroutine should be on the
same level. This is necessary for the reset method to work.

Fixes #2731

4 years agoMerge pull request #2930 from bdarnell/deprecate35
Ben Darnell [Wed, 30 Sep 2020 14:46:59 +0000 (10:46 -0400)] 
Merge pull request #2930 from bdarnell/deprecate35

Add deprecation notice for Python 3.5

4 years agoAdd deprecation notice for Python 3.5 2930/head
Ben Darnell [Wed, 30 Sep 2020 14:25:17 +0000 (10:25 -0400)] 
Add deprecation notice for Python 3.5

4 years agoci: Switch from testpypi to real pypi v6.1.0b1
Ben Darnell [Wed, 30 Sep 2020 11:15:10 +0000 (07:15 -0400)] 
ci: Switch from testpypi to real pypi

4 years agoMerge pull request #2928 from bdarnell/relnotes61
Ben Darnell [Wed, 30 Sep 2020 03:11:48 +0000 (23:11 -0400)] 
Merge pull request #2928 from bdarnell/relnotes61

Add release notes for 6.1, bump version to 6.1b1

4 years agoAdd release notes for 6.1, bump version to 6.1b1 2928/head
Ben Darnell [Wed, 30 Sep 2020 02:23:56 +0000 (22:23 -0400)] 
Add release notes for 6.1, bump version to 6.1b1

4 years agoMerge pull request #2923 from bdarnell/ci-refactor
Ben Darnell [Tue, 29 Sep 2020 03:05:59 +0000 (23:05 -0400)] 
Merge pull request #2923 from bdarnell/ci-refactor

test: Refactor CI configuration

4 years agotest: Refactor CI configuration 2923/head
Ben Darnell [Sat, 26 Sep 2020 19:32:56 +0000 (15:32 -0400)] 
test: Refactor CI configuration

- Add osx and windows builds on travis
- Stop running -full test suites on every python version on arm64
- Use cibuildwheel to build for all python versions in one job per
  platform
- Bring a single test configuration and linters up to a first "quick"
  stage before starting the whole matrix
- Push the resulting wheels (and sdist) to pypi on tag builds

4 years agoMerge pull request #2921 from ploxiln/gzip_inf_loop
Ben Darnell [Sun, 27 Sep 2020 01:39:46 +0000 (21:39 -0400)] 
Merge pull request #2921 from ploxiln/gzip_inf_loop

simple_httpclient: fix infinite loop hang with invalid gzip data

4 years agohttp: fix infinite loop hang with invalid gzip data 2921/head
Jeff Hunter [Tue, 9 Jun 2020 20:18:29 +0000 (13:18 -0700)] 
http: fix infinite loop hang with invalid gzip data

4 years agohttpclient_test: new test for invalid gzip Content-Encoding
Pierce Lopez [Fri, 25 Sep 2020 05:29:57 +0000 (01:29 -0400)] 
httpclient_test: new test for invalid gzip Content-Encoding

this caused an infinite loop in simple_httpclient

4 years agoMerge pull request #2922 from ploxiln/travis_pypy_711
Ben Darnell [Sat, 26 Sep 2020 15:18:09 +0000 (11:18 -0400)] 
Merge pull request #2922 from ploxiln/travis_pypy_711

test: update Travis-CI matrix pypy version

4 years agoMerge pull request #2919 from ploxiln/simple_httpclient_zero_timeout
Ben Darnell [Sat, 26 Sep 2020 14:58:07 +0000 (10:58 -0400)] 
Merge pull request #2919 from ploxiln/simple_httpclient_zero_timeout

simple_httpclient: handle connect_timeout or request_timeout of 0

4 years agotest: update Travis-CI matrix pypy version to 3.6-7.3.1 2922/head
Pierce Lopez [Fri, 25 Sep 2020 20:19:35 +0000 (16:19 -0400)] 
test: update Travis-CI matrix pypy version to 3.6-7.3.1

4 years agohttpclient: document connect_timeout/request_timeout 0 value 2919/head
Pierce Lopez [Fri, 25 Sep 2020 20:49:24 +0000 (16:49 -0400)] 
httpclient: document connect_timeout/request_timeout 0 value

not exactly true for curl_httpclient (libcurl uses a connect_timeout
of 300 seconds if no connect timeout is set) but close enough

4 years agosimple_httpclient: handle connect_timeout or request_timeout of 0
Pierce Lopez [Tue, 22 Sep 2020 19:43:43 +0000 (15:43 -0400)] 
simple_httpclient: handle connect_timeout or request_timeout of 0

Using a connect_timeout or request_timeout of 0 was effectively
invalid for simple_httpclient: it would skip the actual request
entirely (because the bulk of the logic was inside "if timeout:").
This was not checked for or raised as an error, it just behaved
unexpectedly.

Change simple_httpclient to always assert these timeouts are not None
and to support the 0 value similar to curl (where request_timeout=0
means no timeout, and connect_timeout=0 means curl default 300 seconds
which is very very long for a tcp connection).

4 years agohttpclient_test: add test for connect_timeout=0 request_timeout=0
Pierce Lopez [Fri, 25 Sep 2020 20:06:50 +0000 (16:06 -0400)] 
httpclient_test: add test for connect_timeout=0 request_timeout=0

4 years agoMerge pull request #2920 from ploxiln/websocket_no_redirect
Ben Darnell [Fri, 25 Sep 2020 19:18:38 +0000 (15:18 -0400)] 
Merge pull request #2920 from ploxiln/websocket_no_redirect

websocket: set follow_redirects to False

4 years agoMerge pull request #2918 from ploxiln/httpclient_test_303_method
Ben Darnell [Fri, 25 Sep 2020 18:48:21 +0000 (14:48 -0400)] 
Merge pull request #2918 from ploxiln/httpclient_test_303_method

tests: httpclient may turn all methods into GET for 303 redirect

4 years agosimple_httpclient: after 303 redirect, turn all methods into GET 2918/head
Pierce Lopez [Tue, 22 Sep 2020 18:00:21 +0000 (14:00 -0400)] 
simple_httpclient: after 303 redirect, turn all methods into GET

not just POST (but still not HEAD)

following the behavior of libcurl > 7.70

4 years agowebsocket: set follow_redirects to False 2920/head
Debby [Wed, 10 Jun 2020 17:58:08 +0000 (13:58 -0400)] 
websocket: set follow_redirects to False

to prevent silent failure when the websocket client gets a 3xx
redirect response, because it does not currently support redirects

Partial fix for issue #2405

4 years agowebsocket_test: test websocket_connect redirect raises exception
Pierce Lopez [Tue, 22 Sep 2020 23:26:06 +0000 (19:26 -0400)] 
websocket_test: test websocket_connect redirect raises exception

instead of "uncaught exception" and then test timeout

4 years agoMerge pull request #2890 from odidev/tornado_arm
Ben Darnell [Thu, 24 Sep 2020 00:57:46 +0000 (20:57 -0400)] 
Merge pull request #2890 from odidev/tornado_arm

Added arm64 jobs for Travis-CI

4 years agotests: httpclient may turn all methods into GET for 303 redirect
Pierce Lopez [Tue, 22 Sep 2020 17:41:15 +0000 (13:41 -0400)] 
tests: httpclient may turn all methods into GET for 303 redirect

4 years agoModified ".travis.yml" to test it's own built wheel 2890/head
odidev [Mon, 7 Sep 2020 14:55:38 +0000 (14:55 +0000)] 
Modified ".travis.yml" to test it's own built wheel

Signed-off-by: odidev <odidev@puresoftware.com>
4 years agoMerge pull request #2815 from bdarnell/thread-selector
Ben Darnell [Sun, 20 Sep 2020 18:38:24 +0000 (14:38 -0400)] 
Merge pull request #2815 from bdarnell/thread-selector

asyncio: Improve support Python 3.8 on Windows

4 years agoMerge pull request #2901 from amitp/patch-1
Ben Darnell [Mon, 14 Sep 2020 00:19:37 +0000 (20:19 -0400)] 
Merge pull request #2901 from amitp/patch-1

Update links on home page

4 years agoUpdate links on home page 2901/head
Amit Patel [Sat, 15 Aug 2020 23:05:49 +0000 (16:05 -0700)] 
Update links on home page

* Updated http links to the https versions when possible.
* Updated links to Google Groups to match their new URL format.
* Updated links to other projects to match their new locations.
* And finally, updated link to FriendFeed to go to the Wikipedia page, because friendfeed.com is just a redirect to facebook.com now :-( :-(

4 years agoUpdate super usage (#2912)
Poruri Sai Rahul [Sun, 13 Sep 2020 15:06:02 +0000 (15:06 +0000)] 
Update super usage (#2912)

On Python 3, super does not need to be called with arguments where as on
Python 2, super needs to be called with a class object and an instance.

This commit updates the super usage using automated regex-based search
and replace. After the automated changes were made, each change was
individually checked before committing.

4 years agoMerge pull request #2913 from rahulporuri/cln/utf8-coding-cookies
Ben Darnell [Sun, 13 Sep 2020 15:03:31 +0000 (11:03 -0400)] 
Merge pull request #2913 from rahulporuri/cln/utf8-coding-cookies

Remove utf-8 coding cookies in source files

4 years agoAllow non-yielding functions in `tornado.gen.coroutine`'s type hint (#2909)
jack1142 [Sun, 13 Sep 2020 15:01:31 +0000 (17:01 +0200)] 
Allow non-yielding functions in `tornado.gen.coroutine`'s type hint (#2909)

`@gen.coroutine` deco allows non-yielding functions, so I reflected that in the type hint.

Requires usage of `@typing.overload` due to python/mypy#9435

4 years agoCLN : Remove utf-8 coding cookies in source files 2913/head
Sai Rahul Poruri [Sat, 12 Sep 2020 12:27:53 +0000 (13:27 +0100)] 
CLN : Remove utf-8 coding cookies in source files

On Python 3, utf-8 is the default python source code encoding. so, the
coding cookies on files that specify utf-8 are not needed anymore.

modified:   tornado/_locale_data.py
modified:   tornado/locale.py
modified:   tornado/test/curl_httpclient_test.py
modified:   tornado/test/httpclient_test.py
modified:   tornado/test/httputil_test.py
modified:   tornado/test/options_test.py
modified:   tornado/test/util_test.py

4 years agoAdded arm64 jobs for Travis-CI
odidev [Thu, 16 Jul 2020 07:54:06 +0000 (13:24 +0530)] 
Added arm64 jobs for Travis-CI

4 years agoMerge pull request #2906 from bdarnell/docs-pin
Ben Darnell [Wed, 2 Sep 2020 19:07:05 +0000 (15:07 -0400)] 
Merge pull request #2906 from bdarnell/docs-pin

docs: Pin version of sphinxcontrib-asyncio

4 years agodocs: Pin version of sphinxcontrib-asyncio 2906/head
Ben Darnell [Tue, 1 Sep 2020 20:54:34 +0000 (16:54 -0400)] 
docs: Pin version of sphinxcontrib-asyncio

The just-released version 0.3.0 is incompatible with our older pinned
version of sphinx.

4 years agoMerge pull request #2902 from lilydjwg/master
Ben Darnell [Wed, 2 Sep 2020 18:50:10 +0000 (14:50 -0400)] 
Merge pull request #2902 from lilydjwg/master

curl_httpclient: set CURLOPT_PROXY to NULL if pycurl supports it

4 years agodocs: Pin version of sphinxcontrib-asyncio 2815/head
Ben Darnell [Tue, 1 Sep 2020 20:54:34 +0000 (16:54 -0400)] 
docs: Pin version of sphinxcontrib-asyncio

The just-released version 0.3.0 is incompatible with our older pinned
version of sphinx.

4 years agoasyncio: Refactor selector to callbacks instead of coroutine
Ben Darnell [Tue, 1 Sep 2020 20:48:47 +0000 (16:48 -0400)] 
asyncio: Refactor selector to callbacks instead of coroutine

Restarting the event loop to "cleanly" shut down a coroutine introduces
other problems (mainly manifesting as errors logged while running
tornado.test.gen_test). Replace the coroutine with a pair of callbacks
so we don't need to do anything special to shut down without logging
warnings.

4 years agotest: Add an option to disable assertion that logs are empty
Ben Darnell [Fri, 7 Aug 2020 16:26:10 +0000 (12:26 -0400)] 
test: Add an option to disable assertion that logs are empty

Use this on windows due to a log spam issue in asyncio.

4 years agoasyncio: Rework AddThreadSelectorEventLoop
Ben Darnell [Mon, 6 Jul 2020 00:48:16 +0000 (20:48 -0400)] 
asyncio: Rework AddThreadSelectorEventLoop

Running a whole event loop on the other thread leads to tricky
synchronization problems. Instead, keep as much as possible on the
main thread, and call out to a second thread only for the blocking
select system call itself.

4 years agoasyncio: Improve support Python 3.8 on Windows
Ben Darnell [Sat, 22 Feb 2020 23:36:11 +0000 (18:36 -0500)] 
asyncio: Improve support Python 3.8 on Windows

This commit removes the need for applications to work around the
backwards-incompatible change to the default event loop. Instead,
Tornado will detect the use of the windows proactor event loop and
start a selector event loop in a separate thread.

Closes #2804

4 years agotest: Add missing level to ExpectLog call
Ben Darnell [Mon, 17 Feb 2020 21:22:54 +0000 (16:22 -0500)] 
test: Add missing level to ExpectLog call

4 years agoiostream_test: Improve cleanup
Ben Darnell [Mon, 17 Feb 2020 21:11:23 +0000 (16:11 -0500)] 
iostream_test: Improve cleanup

Closing the file descriptor without removing the corresponding handler
is technically incorrect, although the default IOLoops don't have a
problem with it.

4 years agohttpclient_test: Improve error reporting
Ben Darnell [Mon, 17 Feb 2020 21:03:43 +0000 (16:03 -0500)] 
httpclient_test: Improve error reporting

Without this try/finally, if this test ever fails, errors can be
reported in a confusing way.

4 years agocurl_httpclient: set CURLOPT_PROXY to NULL if pycurl supports it 2902/head
依云 [Tue, 28 Jul 2020 14:09:45 +0000 (22:09 +0800)] 
curl_httpclient: set CURLOPT_PROXY to NULL if pycurl supports it

This restores curl's default behaviour: use environment variables.

This option was set to "" to disable proxy in
905a215a286041c986005859c378c0445c127cbb but curl uses environment
variables by default.

5 years agoMerge pull request #2889 from kinow/update-callback-text-run_on_executor
Ben Darnell [Fri, 24 Jul 2020 16:45:35 +0000 (12:45 -0400)] 
Merge pull request #2889 from kinow/update-callback-text-run_on_executor

Remove text about callback (removed) in run_on_executor

5 years agoRemove text about callback (removed) in run_on_executor 2889/head
Bruno P. Kinoshita [Mon, 13 Jul 2020 21:34:57 +0000 (09:34 +1200)] 
Remove text about callback (removed) in run_on_executor

5 years agoMerge pull request #2885 from bdarnell/deflake-test
Ben Darnell [Mon, 29 Jun 2020 01:11:57 +0000 (21:11 -0400)] 
Merge pull request #2885 from bdarnell/deflake-test

test: Use larger time values in testing_test

5 years agotest: Use larger time values in testing_test 2885/head
Ben Darnell [Sun, 28 Jun 2020 19:12:29 +0000 (15:12 -0400)] 
test: Use larger time values in testing_test

This test was flaky on appveyor. Also expand comments about what
exactly the test is doing.

5 years agoMerge pull request #2884 from bdarnell/remove-cloexec
Ben Darnell [Sat, 27 Jun 2020 14:12:46 +0000 (10:12 -0400)] 
Merge pull request #2884 from bdarnell/remove-cloexec

platform: Remove obsolete functions

5 years agoiostream,platform: Remove _set_nonblocking function 2884/head
Ben Darnell [Fri, 26 Jun 2020 22:57:31 +0000 (18:57 -0400)] 
iostream,platform: Remove _set_nonblocking function

This functionality is now provided directly in the `os` module.

5 years agoplatform: Remove tornado.platform.auto.set_close_exec
Ben Darnell [Fri, 26 Jun 2020 21:28:04 +0000 (17:28 -0400)] 
platform: Remove tornado.platform.auto.set_close_exec

This function is obsolete: Since python 3.4, file descriptors created
by python are non-inheritable by default (and in the event you create
a file descriptor another way, a standard function os.set_inheritable
is available).

The windows implementation of this function was also apparently
broken, but this went unnoticed because the default behavior on
windows is for file descriptors to be non-inheritable.

Fixes #2867

5 years agoMerge pull request #2881 from bdarnell/auth-examples
Ben Darnell [Sat, 20 Jun 2020 19:42:31 +0000 (15:42 -0400)] 
Merge pull request #2881 from bdarnell/auth-examples

auth: Fix example code

5 years agoauth: Fix example code 2881/head
Ben Darnell [Sat, 20 Jun 2020 17:09:59 +0000 (13:09 -0400)] 
auth: Fix example code

Continuation of #2811

The oauth2 version of authorize_redirect is no longer a coroutine, so
don't use await in example code. The oauth1 version is still a
coroutine, but one twitter example was incorrectly calling it with
yield instead of await.

5 years agoMerge pull request #2880 from bdarnell/process-test2
Ben Darnell [Sat, 20 Jun 2020 17:07:45 +0000 (13:07 -0400)] 
Merge pull request #2880 from bdarnell/process-test2

test: Use default timeouts in sigchild test

5 years agoMerge pull request #2811 from bn0ir/master
Ben Darnell [Sat, 20 Jun 2020 17:02:34 +0000 (13:02 -0400)] 
Merge pull request #2811 from bn0ir/master

Fix Google OAuth example

5 years agotest: Use default timeouts in sigchild test 2880/head
Ben Darnell [Sat, 20 Jun 2020 16:52:44 +0000 (12:52 -0400)] 
test: Use default timeouts in sigchild test

The 1s timeout used here has become flaky with the introduction of a
sleep (before the timeout even starts).

5 years agoMerge pull request #2879 from bdarnell/template-docs
Ben Darnell [Sat, 20 Jun 2020 14:02:53 +0000 (10:02 -0400)] 
Merge pull request #2879 from bdarnell/template-docs

template: Clarify docs on escaping

5 years agoMerge pull request #2814 from Recursing/patch-1
Ben Darnell [Fri, 19 Jun 2020 21:28:46 +0000 (17:28 -0400)] 
Merge pull request #2814 from Recursing/patch-1

Standardize type documentation for HTTPRequest init

5 years agotemplate: Clarify docs on escaping 2879/head
Ben Darnell [Fri, 19 Jun 2020 21:27:58 +0000 (17:27 -0400)] 
template: Clarify docs on escaping

Originally from #2831, which went to the wrong branch.

5 years agoMerge pull request #2863 from Agnewee/hotfix/stop-ping-callback
Ben Darnell [Fri, 19 Jun 2020 20:39:12 +0000 (16:39 -0400)] 
Merge pull request #2863 from Agnewee/hotfix/stop-ping-callback

Stop ping_callback if websocket client specifies ping_interval

5 years agoMerge pull request #2874 from jeffhunter/types
Ben Darnell [Fri, 19 Jun 2020 19:55:23 +0000 (15:55 -0400)] 
Merge pull request #2874 from jeffhunter/types

fix types for max_age_days and expires_days parameters

5 years agoMerge pull request #2878 from bdarnell/fix-process-test
Ben Darnell [Fri, 19 Jun 2020 19:45:15 +0000 (15:45 -0400)] 
Merge pull request #2878 from bdarnell/fix-process-test

test: Add a sleep to deflake a test

5 years agoci: Allow failures on nightly python due to cffi incompatibility 2878/head
Ben Darnell [Fri, 19 Jun 2020 19:24:03 +0000 (15:24 -0400)] 
ci: Allow failures on nightly python due to cffi incompatibility

5 years agoci: Drop tox-venv
Ben Darnell [Fri, 19 Jun 2020 18:59:46 +0000 (14:59 -0400)] 
ci: Drop tox-venv

Its README says it is mostly obsolete due to improvements in
virtualenv. Using it appears to cause problems related to
https://github.com/pypa/setuptools/issues/1934 because virtualenv
installs the wheel package by default but venv doesn't.

5 years agotest: Add a sleep to deflake a test
Ben Darnell [Fri, 19 Jun 2020 18:36:36 +0000 (14:36 -0400)] 
test: Add a sleep to deflake a test

Not sure why this has recently started happening in some environments,
but killing a process too soon causes the wrong exit status in some
python builds on macOS.

5 years agofix types for max_age_days and expires_days parameters 2874/head
Jeff Hunter [Tue, 9 Jun 2020 19:58:09 +0000 (12:58 -0700)] 
fix types for max_age_days and expires_days parameters

5 years agoMerge pull request #2859 from noviluni/fix_some_typos
Ben Darnell [Mon, 25 May 2020 02:23:09 +0000 (22:23 -0400)] 
Merge pull request #2859 from noviluni/fix_some_typos

Fix some typos

5 years agostop ping_callback 2863/head
agnewee [Fri, 15 May 2020 10:13:53 +0000 (18:13 +0800)] 
stop ping_callback

5 years agorevert genericize change 2859/head
marc [Fri, 15 May 2020 08:21:56 +0000 (10:21 +0200)] 
revert genericize change

5 years agofix typos
marc [Tue, 12 May 2020 13:43:20 +0000 (15:43 +0200)] 
fix typos

5 years agoMerge pull request #2861 from noviluni/fix_E741
Ben Darnell [Thu, 14 May 2020 21:42:48 +0000 (17:42 -0400)] 
Merge pull request #2861 from noviluni/fix_E741

fix new E741 detected cases

5 years agofix new E741 detected cases 2861/head
marc [Thu, 14 May 2020 11:00:28 +0000 (13:00 +0200)] 
fix new E741 detected cases

5 years agoMerge pull request #2857 from bdarnell/fix-docs-pin
Ben Darnell [Mon, 11 May 2020 17:27:16 +0000 (13:27 -0400)] 
Merge pull request #2857 from bdarnell/fix-docs-pin

Revert "docs: Use python 3.7 via conda for readthedocs builds"

5 years agoRevert "docs: Use python 3.7 via conda for readthedocs builds" 2857/head
Ben Darnell [Mon, 11 May 2020 17:09:54 +0000 (13:09 -0400)] 
Revert "docs: Use python 3.7 via conda for readthedocs builds"

This reverts commit e7e31e5642ae56da3f768d9829036eab99f0c988.

We were using conda to get access to python 3.7 before rtd supported
it in their regular builds, but this led to problems pinning a
specific version of sphinx. See
https://github.com/readthedocs/readthedocs.org/issues/6870

5 years agoMerge pull request #2847 from tornadoweb/bdarnell-patch-1
Ben Darnell [Sun, 26 Apr 2020 21:52:24 +0000 (17:52 -0400)] 
Merge pull request #2847 from tornadoweb/bdarnell-patch-1

iostream: Update comment

5 years agoAdded default User-Agent to the simple http client if not provided.
Flavio Garcia [Sun, 26 Apr 2020 20:18:26 +0000 (16:18 -0400)] 
Added default User-Agent to the simple http client if not provided.

The User-Agent format is "Tornado\{Tornado_Version}".

If self.request.user_agent isn't set and self.request.headers has
no User-Agent in it's keys the default User-Agent is added.

Fixes: #2702
5 years agoMerge pull request #2797 from garetht/nested-doc-fix
Ben Darnell [Sun, 26 Apr 2020 20:14:45 +0000 (16:14 -0400)] 
Merge pull request #2797 from garetht/nested-doc-fix

Fix syntax error in nested routing example

5 years agoMerge pull request #2796 from jbampton/fix-word-case
Ben Darnell [Sun, 26 Apr 2020 20:14:10 +0000 (16:14 -0400)] 
Merge pull request #2796 from jbampton/fix-word-case

Fix case of JavaScript, GitHub and CSS.

5 years agoiostream: Update comment 2847/head
Ben Darnell [Sun, 26 Apr 2020 20:12:26 +0000 (16:12 -0400)] 
iostream: Update comment

Update comment from #2690 about ssl module exceptions.

5 years agoMerge pull request #2690 from kleptog/bug2689
Ben Darnell [Sun, 26 Apr 2020 20:10:30 +0000 (16:10 -0400)] 
Merge pull request #2690 from kleptog/bug2689

SSLIOStream: Handle CertificateErrors like other errors

5 years agoMerge pull request #2821 from tornadoweb/bdarnell-patch-1
Ben Darnell [Fri, 6 Mar 2020 01:35:19 +0000 (20:35 -0500)] 
Merge pull request #2821 from tornadoweb/bdarnell-patch-1

maint: Bump bleach version for a security fix

5 years agomaint: Bump bleach version for a security fix 2821/head
Ben Darnell [Wed, 4 Mar 2020 04:07:11 +0000 (23:07 -0500)] 
maint: Bump bleach version for a security fix

5 years agoMerge pull request #2820 from bdarnell/relnotes-master
Ben Darnell [Wed, 4 Mar 2020 02:57:43 +0000 (21:57 -0500)] 
Merge pull request #2820 from bdarnell/relnotes-master

Master branch release notes for version 6.0.4

5 years agoMaster branch release notes for version 6.0.4 2820/head
Ben Darnell [Tue, 3 Mar 2020 21:46:32 +0000 (16:46 -0500)] 
Master branch release notes for version 6.0.4

5 years agoMerge pull request #2818 from bdarnell/fix-travis
Ben Darnell [Mon, 2 Mar 2020 19:21:06 +0000 (14:21 -0500)] 
Merge pull request #2818 from bdarnell/fix-travis

ci: Fix travis.yml

5 years agotravis-ci.com doesn't like it when you have matrix and jobs 2818/head
Min RK [Thu, 27 Feb 2020 10:32:58 +0000 (11:32 +0100)] 
travis-ci.com doesn't like it when you have matrix and jobs

.org still allows this for some reason

5 years agoMerge pull request #2812 from jrbourbeau/py38-setup-classifier
Ben Darnell [Mon, 2 Mar 2020 18:48:49 +0000 (13:48 -0500)] 
Merge pull request #2812 from jrbourbeau/py38-setup-classifier

Add Python 3.8 clasifier to setup.py

5 years agoStandardize type documentation for HTTPRequest init 2814/head
Recursing [Fri, 21 Feb 2020 12:15:59 +0000 (12:15 +0000)] 
Standardize type documentation for HTTPRequest init

5 years agoAdd Python 3.8 clasifier to setup.py 2812/head
James Bourbeau [Wed, 19 Feb 2020 19:20:45 +0000 (13:20 -0600)] 
Add Python 3.8 clasifier to setup.py

5 years agoFix Google OAuth example (from 6.0 OAuth2Mixin->authorize_redirect is an ordinary... 2811/head
bn0ir [Fri, 14 Feb 2020 12:37:52 +0000 (17:37 +0500)] 
Fix Google OAuth example (from 6.0 OAuth2Mixin->authorize_redirect is an ordinary synchronous function)

5 years agoMerge pull request #2805 from tornadoweb/resolve-pending
Ben Darnell [Sat, 1 Feb 2020 21:44:42 +0000 (16:44 -0500)] 
Merge pull request #2805 from tornadoweb/resolve-pending

iostream: Resolve pending reads on stream close

5 years agoiostream: Expand comments around recent subtle changes 2805/head
Ben Darnell [Sat, 1 Feb 2020 17:49:13 +0000 (12:49 -0500)] 
iostream: Expand comments around recent subtle changes

5 years agoiostream: Add tests for behavior around close with read_until
Ben Darnell [Mon, 5 Aug 2019 01:34:32 +0000 (21:34 -0400)] 
iostream: Add tests for behavior around close with read_until

Updates #2719

5 years agocatch UnsatisfiableReadError in close
Min RK [Fri, 2 Aug 2019 09:20:00 +0000 (11:20 +0200)] 
catch UnsatisfiableReadError in close

5 years agoavoid premature _check_closed in _start_read
Min RK [Thu, 1 Aug 2019 11:53:56 +0000 (13:53 +0200)] 
avoid premature _check_closed in _start_read

_start_read can resolve with _try_inline_read, which can succeed even if the stream has been closed
if the buffer has been populated by a prior read

preserve the fix for asserts being hit when dealing with closed sockets

5 years agoiostream: resolve reads that may be completed while closing
Min RK [Thu, 1 Aug 2019 11:51:12 +0000 (13:51 +0200)] 
iostream: resolve reads that may be completed while closing

fixes issue that a read may fail with StreamClosedError
if stream is closed mid-read

5 years agoMerge pull request #2799 from tornadoweb/wintest
Ben Darnell [Sun, 19 Jan 2020 22:58:40 +0000 (17:58 -0500)] 
Merge pull request #2799 from tornadoweb/wintest

Improve tests on windows

5 years agoasyncio: AnyThreadEventLoopPolicy should always use selectors on windows 2799/head
Ben Darnell [Sun, 19 Jan 2020 22:37:14 +0000 (17:37 -0500)] 
asyncio: AnyThreadEventLoopPolicy should always use selectors on windows

5 years agoci: Add python 3.8 to windows CI
Ben Darnell [Sun, 19 Jan 2020 20:19:45 +0000 (15:19 -0500)] 
ci: Add python 3.8 to windows CI