]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
4 years agoleave previous versionchanged 2974/head
youguanxinqing [Tue, 12 Jan 2021 10:53:54 +0000 (18:53 +0800)] 
leave previous versionchanged

4 years agoleave previous versionchanged
youguanxinqing [Tue, 12 Jan 2021 10:52:33 +0000 (18:52 +0800)] 
leave previous versionchanged

4 years agochange comment
youguanxinqing [Tue, 12 Jan 2021 01:51:27 +0000 (09:51 +0800)] 
change comment

4 years agoformat code according to result of flake8 check
youguanxinqing [Mon, 11 Jan 2021 15:01:04 +0000 (23:01 +0800)] 
format code according to result of flake8 check

4 years agoAdd 'address' keyword control binded address #2969
youguanxinqing [Mon, 11 Jan 2021 14:35:20 +0000 (22:35 +0800)] 
Add 'address' keyword control binded address #2969

4 years agoMerge pull request #2965 from timgates42/bugfix_typo_authenticate
Ben Darnell [Sat, 9 Jan 2021 21:13:26 +0000 (16:13 -0500)] 
Merge pull request #2965 from timgates42/bugfix_typo_authenticate

docs: fix simple typo, authentiate -> authenticate

4 years agoMerge pull request #2972 from bdarnell/wsgi-docstring
Ben Darnell [Sat, 9 Jan 2021 21:12:16 +0000 (16:12 -0500)] 
Merge pull request #2972 from bdarnell/wsgi-docstring

wsgi: Update docstring example for python 3

4 years agoMerge pull request #2963 from sk1p/issue-2034
Ben Darnell [Sat, 9 Jan 2021 21:10:14 +0000 (16:10 -0500)] 
Merge pull request #2963 from sk1p/issue-2034

WaitIterator: don't re-use _running_future

4 years agowsgi: Update docstring example for python 3 2972/head
Ben Darnell [Sat, 9 Jan 2021 20:52:34 +0000 (15:52 -0500)] 
wsgi: Update docstring example for python 3

Fixes #2960

4 years agoMerge pull request #2971 from bdarnell/only-initialize-existing-locales
Ben Darnell [Sat, 9 Jan 2021 20:06:33 +0000 (15:06 -0500)] 
Merge pull request #2971 from bdarnell/only-initialize-existing-locales

locale: Only try to load locales that exist

4 years agolocale: Format with black 2971/head
Ben Darnell [Sat, 9 Jan 2021 16:34:58 +0000 (11:34 -0500)] 
locale: Format with black

4 years agodocs: fix simple typo, authentiate -> authenticate 2965/head
Tim Gates [Mon, 21 Dec 2020 20:49:51 +0000 (07:49 +1100)] 
docs: fix simple typo, authentiate -> authenticate

There is a small typo in tornado/netutil.py.

Should read `authenticate` rather than `authentiate`.

4 years agoFix return type of _return_result 2963/head
Alexander Clausen [Sat, 12 Dec 2020 18:34:23 +0000 (19:34 +0100)] 
Fix return type of _return_result

4 years agoWaitIterator: don't re-use _running_future
Alexander Clausen [Sat, 12 Dec 2020 05:58:06 +0000 (06:58 +0100)] 
WaitIterator: don't re-use _running_future

When used with asyncio.Future, WaitIterator may skip indices in some
cases. This is caused by multiple _return_result calls after another,
without having the chain_future call finish in between. This is fixed
here by not hanging on to the _running_future anymore, which forces
subsequent _return_result calls to add to _finished, instead of causing
the previous result to be silently dropped.

Fixes #2034

4 years agoIssue #2954: prevent logging error messages for not existing translation files 2956/head
Florian Best [Thu, 19 Nov 2020 09:45:28 +0000 (10:45 +0100)] 
Issue #2954: prevent logging error messages for not existing translation files

Every not existing translation file for the existing locales logged an error message:
Cannot load translation for 'ps': [Errno 2] No such file or directory: '/usr/share/locale/ps/LC_MESSAGES/foo.mo'

4 years agoMerge pull request #2932 from novanauliazami/auth
Ben Darnell [Tue, 3 Nov 2020 02:28:30 +0000 (21:28 -0500)] 
Merge pull request #2932 from novanauliazami/auth

Update how to register application with Google

4 years agoMerge pull request #2936 from eltoder/patch-1
Ben Darnell [Tue, 3 Nov 2020 02:26:16 +0000 (21:26 -0500)] 
Merge pull request #2936 from eltoder/patch-1

Fix await vs yield in the example

4 years agoMerge pull request #2946 from bdarnell/deps
Ben Darnell [Tue, 3 Nov 2020 02:09:55 +0000 (21:09 -0500)] 
Merge pull request #2946 from bdarnell/deps

Multiple dependency-related updates

4 years agoplatform: Deprecate twisted and cares resolvers 2946/head
Ben Darnell [Mon, 2 Nov 2020 02:27:27 +0000 (21:27 -0500)] 
platform: Deprecate twisted and cares resolvers

These were most interesting when the default resolver blocked
the main thread. Now that the default is to use a thread pool,
there is little if any demand for alternative resolvers just to
avoid threads.

4 years agodocs: Stop using autodoc for t.p.twisted
Ben Darnell [Mon, 2 Nov 2020 02:09:08 +0000 (21:09 -0500)] 
docs: Stop using autodoc for t.p.twisted

This way we don't have to install twisted into the docs build
environment. Add some more detail while I'm here.

4 years agodocs: Pin specific versions of requirements
Ben Darnell [Sun, 1 Nov 2020 21:15:30 +0000 (16:15 -0500)] 
docs: Pin specific versions of requirements

4 years agodocs: Upgrade to latest version of sphinx
Ben Darnell [Sun, 1 Nov 2020 21:08:30 +0000 (16:08 -0500)] 
docs: Upgrade to latest version of sphinx

This version attempts to resolve types found in type annotations,
but in many cases it can't find them so silence a bunch of warnings.
(Looks like deferred annotation processing will make this better but
we won't be able to use that until we drop Python 3.6)

4 years agoUpdate mypy to latest version
Ben Darnell [Sun, 1 Nov 2020 13:23:07 +0000 (08:23 -0500)] 
Update mypy to latest version

4 years ago*: Update black to newest version
Ben Darnell [Sat, 31 Oct 2020 16:23:35 +0000 (12:23 -0400)] 
*: Update black to newest version

4 years agomaint: Prune requirements lists
Ben Darnell [Sat, 31 Oct 2020 16:15:23 +0000 (12:15 -0400)] 
maint: Prune requirements lists

Remove dependencies that are rarely used outside of tox. The main
motivation is to give dependabot less to worry about when an indirect
dependency has a security vulnerability.

4 years agoiostream: Add platform assertion for mypy
Ben Darnell [Sat, 31 Oct 2020 16:14:42 +0000 (12:14 -0400)] 
iostream: Add platform assertion for mypy

Without this mypy would fail when run on windows.

4 years agoMerge pull request #2945 from bdarnell/start6.2
Ben Darnell [Sat, 31 Oct 2020 12:58:34 +0000 (08:58 -0400)] 
Merge pull request #2945 from bdarnell/start6.2

Bump main branch to 6.2.dev1; drop py35

4 years agoDrop support for python 3.5 2945/head
Ben Darnell [Fri, 30 Oct 2020 17:57:36 +0000 (13:57 -0400)] 
Drop support for python 3.5

4 years agoRemove appveyor configs
Ben Darnell [Fri, 30 Oct 2020 17:58:14 +0000 (13:58 -0400)] 
Remove appveyor configs

4 years agoBump main branch to 6.2.dev1
Ben Darnell [Fri, 30 Oct 2020 17:55:20 +0000 (13:55 -0400)] 
Bump main branch to 6.2.dev1

4 years agoMerge pull request #2944 from bdarnell/bump6.1 v6.1.0
Ben Darnell [Fri, 30 Oct 2020 17:44:37 +0000 (13:44 -0400)] 
Merge pull request #2944 from bdarnell/bump6.1

Set version to 6.1 final

4 years agoci: Work around outdated windows root certificates 2944/head
Ben Darnell [Fri, 30 Oct 2020 13:05:06 +0000 (09:05 -0400)] 
ci: Work around outdated windows root certificates

4 years agoSet version to 6.1 final
Ben Darnell [Fri, 30 Oct 2020 11:53:09 +0000 (07:53 -0400)] 
Set version to 6.1 final

4 years agoMerge pull request #2940 from bdarnell/bump6.1b2 v6.1.0b2
Ben Darnell [Sun, 25 Oct 2020 00:49:14 +0000 (20:49 -0400)] 
Merge pull request #2940 from bdarnell/bump6.1b2

Bump version to 6.1b2

4 years agoBump version to 6.1b2 2940/head
Ben Darnell [Sat, 24 Oct 2020 19:51:30 +0000 (15:51 -0400)] 
Bump version to 6.1b2

4 years agoMerge pull request #2931 from bdarnell/py39
Ben Darnell [Sat, 24 Oct 2020 19:44:20 +0000 (15:44 -0400)] 
Merge pull request #2931 from bdarnell/py39

ci,setup: Add python 3.9 to tox, cibuildwheel and setup.py

4 years agoci,setup: Add python 3.9 to tox, cibuildwheel and setup.py 2931/head
Ben Darnell [Wed, 30 Sep 2020 14:52:21 +0000 (10:52 -0400)] 
ci,setup: Add python 3.9 to tox, cibuildwheel and setup.py

4 years agoMerge pull request #2934 from bdarnell/manual-thread
Ben Darnell [Sat, 24 Oct 2020 18:29:23 +0000 (14:29 -0400)] 
Merge pull request #2934 from bdarnell/manual-thread

asyncio: Manage our own thread instead of an executor

4 years agoasyncio: Manage our own thread instead of an executor 2934/head
Ben Darnell [Mon, 12 Oct 2020 00:54:01 +0000 (20:54 -0400)] 
asyncio: Manage our own thread instead of an executor

Python 3.9 changed the behavior of ThreadPoolExecutor at interpreter
shutdown (after the already-tricky import-order issues around
atexit hooks). Avoid these issues by managing the thread by hand.

4 years agotest: Add a timeout to SyncHTTPClient test
Ben Darnell [Mon, 5 Oct 2020 13:39:41 +0000 (09:39 -0400)] 
test: Add a timeout to SyncHTTPClient test

4 years agoMerge pull request #2938 from bdarnell/contextvars
Ben Darnell [Tue, 20 Oct 2020 01:25:40 +0000 (21:25 -0400)] 
Merge pull request #2938 from bdarnell/contextvars

gen: Expliclty track contextvars, fixing contextvars.reset

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 agoFix await vs yield in the example 2936/head
Eugene Toder [Tue, 13 Oct 2020 23:48:19 +0000 (19:48 -0400)] 
Fix await vs yield in the example

4 years agoUpdate how to register application with Google 2932/head
= [Sun, 4 Oct 2020 08:33:09 +0000 (15:33 +0700)] 
Update how to register application with Google

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).