]>
git.ipfire.org Git - thirdparty/tornado.git/log
Python-37 [Wed, 1 Dec 2021 02:38:45 +0000 (10:38 +0800)]
Add note about `parse_*` function in options.py
Python-37 [Mon, 29 Nov 2021 09:56:02 +0000 (17:56 +0800)]
Add note about `parse_command_line` function
Ben Darnell [Wed, 3 Nov 2021 01:12:50 +0000 (21:12 -0400)]
Merge pull request #3074 from tornadoweb/dependabot/pip/docs/babel-2.9.1
build(deps): bump babel from 2.8.0 to 2.9.1 in /docs
dependabot[bot] [Thu, 21 Oct 2021 18:50:02 +0000 (18:50 +0000)]
build(deps): bump babel from 2.8.0 to 2.9.1 in /docs
Bumps [babel](https://github.com/python-babel/babel) from 2.8.0 to 2.9.1.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES)
- [Commits](https://github.com/python-babel/babel/compare/v2.8.0...v2.9.1)
---
updated-dependencies:
- dependency-name: babel
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Ben Darnell [Thu, 26 Aug 2021 18:53:13 +0000 (14:53 -0400)]
Merge pull request #3053 from bfis/patch-2
Avoid 2GB write limitation on SSLIOStream
Ben Darnell [Thu, 26 Aug 2021 18:51:25 +0000 (14:51 -0400)]
iostream: Fix copy/pasted comment
Co-authored-by: Pierce Lopez <pierce.lopez@gmail.com>
Ben Darnell [Thu, 26 Aug 2021 18:47:27 +0000 (14:47 -0400)]
Merge pull request #3052 from hugovk/replace-deprecated-unittest-aliases
Replace deprecated unittest aliases
Ben Darnell [Thu, 26 Aug 2021 18:32:15 +0000 (14:32 -0400)]
Merge pull request #3048 from mivade/httpfile-type-hints
Type hint HTTPFile attributes
bfis [Tue, 24 Aug 2021 10:43:19 +0000 (12:43 +0200)]
Avoid 2GB write limitation on SSLIOStream
Hugo van Kemenade [Thu, 19 Aug 2021 10:21:09 +0000 (13:21 +0300)]
Replace deprecated unittest aliases
Michael V. DePalatis [Tue, 3 Aug 2021 15:04:00 +0000 (09:04 -0600)]
Type hint HTTPFile attributes
Ben Darnell [Fri, 9 Jul 2021 18:05:14 +0000 (14:05 -0400)]
Merge pull request #3041 from samm0ss/sam/feat/encoding-gzip-case-insensitive
Fix case-sensitivity for Content-Encoding: gzip. as per rfc7231 the C…
SamvanLeipsig [Thu, 1 Jul 2021 11:20:24 +0000 (13:20 +0200)]
Fix case-sensitivity for Content-Encoding: gzip. as per rfc7231 the Content-Encoding values are case-insensitive https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.2.1
Pierce Lopez [Sun, 30 May 2021 15:33:14 +0000 (11:33 -0400)]
PeriodicCallback: support async/coroutine callback (#2924)
ISSUE: https://github.com/tornadoweb/tornado/issues/2828
* ioloop: call_later() and call_at() take any Callable coroutine or plain, returning any type
Co-authored-by: agnewee <agnewee@gmail.com>
Ben Darnell [Sat, 15 May 2021 19:24:25 +0000 (15:24 -0400)]
Merge pull request #3010 from alexmv/is_valid_ip
is_valid_ip: Do not raise exceptions on too-long input.
Alex Vandiver [Wed, 7 Apr 2021 20:11:15 +0000 (13:11 -0700)]
is_valid_ip: Do not raise exceptions on too-long input.
is_valid_ip calls `socket.getaddrinfo` with `socket.AI_NUMERICHOST` on
the potential "ip"; even though IP addresses are not hostnames and do
not use the `idna` encoding, `socket.getaddrinfo` will raise
UnicodeError if the potential "ip" is longer than 63 characters long,
the RFC-mandated max hostname length.
Catch these UnicodeErrors and return false for too-long IPs, rather
than raising an exception.
Ben Darnell [Sun, 9 May 2021 16:27:35 +0000 (12:27 -0400)]
Merge pull request #3025 from mivade/periodic-callback-timedelta
Accept timedelta objects in PeriodicCallback
Michael V. DePalatis [Wed, 5 May 2021 15:55:24 +0000 (09:55 -0600)]
Update docstring
Michael V. DePalatis [Wed, 5 May 2021 15:53:49 +0000 (09:53 -0600)]
Optionally accept a timedelta in PeriodicCallback
Ben Darnell [Wed, 21 Apr 2021 19:58:33 +0000 (15:58 -0400)]
Merge pull request #3015 from tornadoweb/dependabot/pip/maint/py-1.10.0
build(deps): bump py from 1.9.0 to 1.10.0 in /maint
dependabot[bot] [Tue, 20 Apr 2021 17:16:45 +0000 (17:16 +0000)]
build(deps): bump py from 1.9.0 to 1.10.0 in /maint
Bumps [py](https://github.com/pytest-dev/py) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/pytest-dev/py/releases)
- [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/py/compare/1.9.0...1.10.0)
Signed-off-by: dependabot[bot] <support@github.com>
Ben Darnell [Sat, 3 Apr 2021 16:36:51 +0000 (12:36 -0400)]
Merge pull request #3006 from tornadoweb/dependabot/pip/docs/pygments-2.7.4
build(deps): bump pygments from 2.7.2 to 2.7.4 in /docs
dependabot[bot] [Tue, 30 Mar 2021 02:01:42 +0000 (02:01 +0000)]
build(deps): bump pygments from 2.7.2 to 2.7.4 in /docs
Bumps [pygments](https://github.com/pygments/pygments) from 2.7.2 to 2.7.4.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.7.2...2.7.4)
Signed-off-by: dependabot[bot] <support@github.com>
Ben Darnell [Sat, 20 Mar 2021 15:46:43 +0000 (11:46 -0400)]
Merge pull request #3000 from GeekDuanLian/patch-1
Allowed set max_body_size to 0
Ben Darnell [Sat, 20 Mar 2021 15:45:45 +0000 (11:45 -0400)]
Merge pull request #3003 from tornadoweb/dependabot/pip/docs/jinja2-2.11.3
build(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs
Ben Darnell [Sat, 20 Mar 2021 15:38:37 +0000 (11:38 -0400)]
Merge pull request #2996 from madsbk/typed_memoryviews
BaseIOStream.write(): support typed memoryviews
dependabot[bot] [Sat, 20 Mar 2021 05:20:28 +0000 (05:20 +0000)]
build(deps): bump jinja2 from 2.11.2 to 2.11.3 in /docs
Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.2 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3)
Signed-off-by: dependabot[bot] <support@github.com>
Sakuya [Tue, 16 Mar 2021 05:31:49 +0000 (13:31 +0800)]
Is this okay
Sakuya [Tue, 16 Mar 2021 05:22:18 +0000 (13:22 +0800)]
But this is not beautiful
Sakuya [Mon, 15 Mar 2021 21:06:24 +0000 (05:06 +0800)]
what
Sakuya [Mon, 15 Mar 2021 20:44:19 +0000 (04:44 +0800)]
fix E127
Sakuya [Mon, 15 Mar 2021 20:28:53 +0000 (04:28 +0800)]
fix line too long
Sakuya [Mon, 15 Mar 2021 20:11:18 +0000 (04:11 +0800)]
Allowed set max_body_size to 0
Mads R. B. Kristensen [Tue, 2 Mar 2021 09:52:29 +0000 (10:52 +0100)]
BaseIOStream.write(): support typed memoryview
Making sure that ``len(data) == data.nbytes`` by casting
memoryviews to bytes.
Ben Darnell [Thu, 4 Feb 2021 02:40:24 +0000 (21:40 -0500)]
Merge pull request #2948 from eltoder/feature/websocket-handler-stream-cleanup
Remove WebSocketHandler.stream.
Ben Darnell [Thu, 4 Feb 2021 02:35:15 +0000 (21:35 -0500)]
Merge pull request #2974 from youguanxinqing/issue-2969
testing: Add 'address' keyword to control bound address #2969
Ben Darnell [Thu, 4 Feb 2021 02:17:25 +0000 (21:17 -0500)]
Merge pull request #2983 from kriskros341/changes
Dict support for WebSocketClientConnection.write_message method
Fixes #2982
Ben Darnell [Thu, 28 Jan 2021 14:54:56 +0000 (09:54 -0500)]
Merge pull request #2970 from bfis/patch-1
Avoid 2GB read limitation on SSLIOStream
kriskros341 [Wed, 27 Jan 2021 15:37:05 +0000 (16:37 +0100)]
Uppercase A in Any
kriskros341 [Wed, 27 Jan 2021 13:36:35 +0000 (14:36 +0100)]
write_message method of WebSocketClientConnection now accepts dict as input
kriskros341 [Wed, 27 Jan 2021 13:24:17 +0000 (14:24 +0100)]
write_message method of WebSocketClientConnection now accepts dict as input
Ben Darnell [Wed, 13 Jan 2021 12:52:20 +0000 (07:52 -0500)]
Merge pull request #2978 from youguanxinqing/issue-2977
should use python3 unicode in 'blog' demo #2977
youguanxinqing [Tue, 12 Jan 2021 10:53:54 +0000 (18:53 +0800)]
leave previous versionchanged
youguanxinqing [Tue, 12 Jan 2021 10:52:33 +0000 (18:52 +0800)]
leave previous versionchanged
youguanxinqing [Tue, 12 Jan 2021 10:35:38 +0000 (18:35 +0800)]
should use python3 unicode in 'blog' demo #2977
youguanxinqing [Tue, 12 Jan 2021 01:51:27 +0000 (09:51 +0800)]
change comment
bfis [Mon, 11 Jan 2021 16:49:33 +0000 (17:49 +0100)]
Add comment explaining workaround
youguanxinqing [Mon, 11 Jan 2021 15:01:04 +0000 (23:01 +0800)]
format code according to result of flake8 check
youguanxinqing [Mon, 11 Jan 2021 14:35:20 +0000 (22:35 +0800)]
Add 'address' keyword control binded address #2969
Eugene Toder [Tue, 3 Nov 2020 03:04:00 +0000 (22:04 -0500)]
Remove WebSocketHandler.stream.
It was no longer used and always set to None.
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
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
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
Ben Darnell [Sat, 9 Jan 2021 20:52:34 +0000 (15:52 -0500)]
wsgi: Update docstring example for python 3
Fixes #2960
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
Ben Darnell [Sat, 9 Jan 2021 16:34:58 +0000 (11:34 -0500)]
locale: Format with black
bfis [Wed, 6 Jan 2021 13:16:19 +0000 (14:16 +0100)]
Remove trailing whitespace
bfis [Wed, 6 Jan 2021 12:22:04 +0000 (13:22 +0100)]
Avoid 2GB read limitation on SSLIOStream
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`.
Alexander Clausen [Sat, 12 Dec 2020 18:34:23 +0000 (19:34 +0100)]
Fix return type of _return_result
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
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'
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
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
Ben Darnell [Tue, 3 Nov 2020 02:09:55 +0000 (21:09 -0500)]
Merge pull request #2946 from bdarnell/deps
Multiple dependency-related updates
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.
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.
Ben Darnell [Sun, 1 Nov 2020 21:15:30 +0000 (16:15 -0500)]
docs: Pin specific versions of requirements
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)
Ben Darnell [Sun, 1 Nov 2020 13:23:07 +0000 (08:23 -0500)]
Update mypy to latest version
Ben Darnell [Sat, 31 Oct 2020 16:23:35 +0000 (12:23 -0400)]
*: Update black to newest version
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.
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.
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
Ben Darnell [Fri, 30 Oct 2020 17:57:36 +0000 (13:57 -0400)]
Drop support for python 3.5
Ben Darnell [Fri, 30 Oct 2020 17:58:14 +0000 (13:58 -0400)]
Remove appveyor configs
Ben Darnell [Fri, 30 Oct 2020 17:55:20 +0000 (13:55 -0400)]
Bump main branch to 6.2.dev1
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
Ben Darnell [Fri, 30 Oct 2020 13:05:06 +0000 (09:05 -0400)]
ci: Work around outdated windows root certificates
Ben Darnell [Fri, 30 Oct 2020 11:53:09 +0000 (07:53 -0400)]
Set version to 6.1 final
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
Ben Darnell [Sat, 24 Oct 2020 19:51:30 +0000 (15:51 -0400)]
Bump version to 6.1b2
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
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
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
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.
Ben Darnell [Mon, 5 Oct 2020 13:39:41 +0000 (09:39 -0400)]
test: Add a timeout to SyncHTTPClient test
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
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
Eugene Toder [Tue, 13 Oct 2020 23:48:19 +0000 (19:48 -0400)]
Fix await vs yield in the example
= [Sun, 4 Oct 2020 08:33:09 +0000 (15:33 +0700)]
Update how to register application with Google
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
Ben Darnell [Wed, 30 Sep 2020 14:25:17 +0000 (10:25 -0400)]
Add deprecation notice for Python 3.5
Ben Darnell [Wed, 30 Sep 2020 11:15:10 +0000 (07:15 -0400)]
ci: Switch from testpypi to real pypi
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
Ben Darnell [Wed, 30 Sep 2020 02:23:56 +0000 (22:23 -0400)]
Add release notes for 6.1, bump version to 6.1b1
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
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
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
Jeff Hunter [Tue, 9 Jun 2020 20:18:29 +0000 (13:18 -0700)]
http: fix infinite loop hang with invalid gzip data