]>
git.ipfire.org Git - thirdparty/tornado.git/log
Will McGugan [Mon, 9 Apr 2018 12:47:37 +0000 (13:47 +0100)]
Remove unused import
Will McGugan [Mon, 9 Apr 2018 10:36:06 +0000 (11:36 +0100)]
read queue of 1 message
Ben Darnell [Sun, 25 Mar 2018 16:59:30 +0000 (12:59 -0400)]
Merge pull request #2326 from bdarnell/httpclient-leak
asyncio: Fix a leak when event loops are created and destroyed
Ben Darnell [Sun, 25 Mar 2018 15:17:58 +0000 (11:17 -0400)]
httpclient: Document inability to use sync HTTPClient in async app
Eliminate a confusing error message when this occurs.
Fixes #2325
Ben Darnell [Sun, 25 Mar 2018 15:11:59 +0000 (11:11 -0400)]
asyncio: Fix a leak when event loops are created and destroyed
The WeakKeyDictionary in IOLoop wasn't doing its job because of
reference cycles. This was easiest to see with the synchronous
HTTPClient.
Fixes #2321
Ben Darnell [Sun, 25 Mar 2018 16:34:19 +0000 (12:34 -0400)]
Merge pull request #2327 from bdarnell/test-dont-close
testing: Don't close the event loop if we didn't create it
Ben Darnell [Sun, 25 Mar 2018 15:50:09 +0000 (11:50 -0400)]
testing: Don't close the event loop if we didn't create it
This improves compatibility with asyncio test frameworks like
pytest-asyncio.
Fixes #2324
Ben Darnell [Fri, 23 Mar 2018 22:24:31 +0000 (18:24 -0400)]
Merge pull request #2319 from bdarnell/gen-deprecation
gen: Deprecate legacy interfaces
Ben Darnell [Fri, 23 Mar 2018 22:10:53 +0000 (18:10 -0400)]
gen_test: Port some tests to non-deprecated interfaces
This temporarily duplicates the tests, but the versions using the
deprecated interfaces will be gone in 6.0
Ben Darnell [Mon, 19 Mar 2018 02:55:02 +0000 (22:55 -0400)]
gen: Doc touchups
Ben Darnell [Mon, 19 Mar 2018 02:36:38 +0000 (22:36 -0400)]
gen: Deprecate Task
Ben Darnell [Sun, 18 Mar 2018 23:49:50 +0000 (19:49 -0400)]
gen: Deprecate YieldPoint and its subclasses
Ben Darnell [Sun, 18 Mar 2018 23:12:18 +0000 (19:12 -0400)]
gen: Deprecate callback argument to coroutines
Ben Darnell [Sun, 18 Mar 2018 22:56:29 +0000 (18:56 -0400)]
gen: Deprecate gen.engine
Ben Darnell [Sun, 18 Mar 2018 22:40:26 +0000 (18:40 -0400)]
Merge pull request #2318 from bdarnell/concurrent-deprecation
concurrent: Add deprecation warning
Ben Darnell [Sun, 18 Mar 2018 22:22:13 +0000 (18:22 -0400)]
escape: Fix doc formatting
Ben Darnell [Sun, 18 Mar 2018 22:14:33 +0000 (18:14 -0400)]
concurrent: Deprecate callback argument with run_on_executor
Ben Darnell [Sun, 18 Mar 2018 21:45:47 +0000 (17:45 -0400)]
Merge pull request #2317 from bdarnell/auth-deprecation
auth: Add deprecation warnings for callback-based interfaces
Ben Darnell [Sun, 18 Mar 2018 21:21:27 +0000 (17:21 -0400)]
auth: Touch up docs
Ben Darnell [Sun, 18 Mar 2018 21:12:28 +0000 (17:12 -0400)]
auth: Accept native coroutines in _oauth_get_user_future
Ben Darnell [Sun, 18 Mar 2018 21:07:42 +0000 (17:07 -0400)]
auth: Deprecated _oauth_get_user
Ben Darnell [Sun, 18 Mar 2018 20:57:49 +0000 (16:57 -0400)]
concurrent,auth: Add deprecation warnings to concurrent.return_future
Ben Darnell [Sun, 18 Mar 2018 20:30:04 +0000 (16:30 -0400)]
auth: Add deprecation warnings for anything using auth_return_future
Ben Darnell [Sun, 18 Mar 2018 20:01:17 +0000 (16:01 -0400)]
Merge pull request #2316 from bdarnell/work
Maintainer dependency updates
Ben Darnell [Sun, 18 Mar 2018 17:40:19 +0000 (13:40 -0400)]
websocket_test: Wrap a long line
flake8 just started complaining about this line for some reason.
Ben Darnell [Sun, 18 Mar 2018 17:34:41 +0000 (13:34 -0400)]
Update warning for missing C compiler on macOS
Ben Darnell [Sun, 18 Mar 2018 17:31:29 +0000 (13:31 -0400)]
Run new autopep8
Ben Darnell [Sun, 18 Mar 2018 17:29:49 +0000 (13:29 -0400)]
Bump maint requirements
Ben Darnell [Sun, 18 Mar 2018 16:01:01 +0000 (12:01 -0400)]
Merge remote-tracking branch 'origin/branch5.0'
Ben Darnell [Sun, 18 Mar 2018 15:39:19 +0000 (11:39 -0400)]
Merge pull request #2315 from bdarnell/release-501
Set version to 5.0.1
Ben Darnell [Sun, 18 Mar 2018 15:17:16 +0000 (11:17 -0400)]
Set version to 5.0.1
Ben Darnell [Sat, 17 Mar 2018 18:18:29 +0000 (14:18 -0400)]
Merge pull request #2310 from pcrespov/patch-1
Update running.rst
Pedro Crespo [Wed, 14 Mar 2018 01:22:00 +0000 (02:22 +0100)]
Update running.rst
minor type
Ben Darnell [Mon, 12 Mar 2018 02:00:43 +0000 (22:00 -0400)]
Merge pull request #2307 from bdarnell/work
concurrent,httputil,websocket: small bug fixes
Ben Darnell [Sun, 11 Mar 2018 22:34:32 +0000 (18:34 -0400)]
httputil: Clean up error handling in HTTPHeaders.parse
Fixes #2280
Ben Darnell [Sun, 11 Mar 2018 22:09:05 +0000 (18:09 -0400)]
concurrent: run_on_executor returns async futures, not concurrent ones
Fixes #2276
Ben Darnell [Sun, 11 Mar 2018 20:13:51 +0000 (16:13 -0400)]
websocket: Make ping() argument optional
Also accept both bytes and str, and add a client-side ping() method.
Fixes #2295
Ben Darnell [Sun, 11 Mar 2018 19:05:41 +0000 (15:05 -0400)]
Merge pull request #2306 from bdarnell/cherrypick-jessie-compatibility
cherrypick-5.0: asyncio: Support Python 3.4.2 for compatibility with Debian jessie
Ben Darnell [Sun, 11 Mar 2018 17:20:26 +0000 (13:20 -0400)]
asyncio: Support Python 3.4.2 for compatibility with Debian jessie
The ensure_future function was not introduced until 3.4.4, and
some exceptions were changed from AssertionError to RuntimeError in
3.4.3.
Fixes #2301
Ben Darnell [Sun, 11 Mar 2018 18:45:48 +0000 (14:45 -0400)]
Merge pull request #2305 from bdarnell/jessie-compatibility
asyncio: Support Python 3.4.2 for compatibility with Debian jessie
Ben Darnell [Sun, 11 Mar 2018 17:38:07 +0000 (13:38 -0400)]
Merge pull request #2282 from staticglobal/master
Only invoke select_subprotocol() when the client requests it
Ben Darnell [Sun, 11 Mar 2018 17:20:26 +0000 (13:20 -0400)]
asyncio: Support Python 3.4.2 for compatibility with Debian jessie
The ensure_future function was not introduced until 3.4.4, and
some exceptions were changed from AssertionError to RuntimeError in
3.4.3.
Fixes #2301
Ben Darnell [Mon, 5 Mar 2018 14:14:25 +0000 (09:14 -0500)]
Bump master version to 5.1.dev1
Ben Darnell [Mon, 5 Mar 2018 13:39:07 +0000 (08:39 -0500)]
Merge pull request #2300 from bdarnell/release-5.0
Final release notes and version bump for 5.0
Ben Darnell [Mon, 5 Mar 2018 01:43:52 +0000 (20:43 -0500)]
Final release notes and version bump for 5.0
Ben Darnell [Sun, 4 Mar 2018 23:22:56 +0000 (18:22 -0500)]
Merge pull request #2299 from bdarnell/docs
docs: Updates for 5.0
Ben Darnell [Sun, 4 Mar 2018 22:50:58 +0000 (17:50 -0500)]
docs: Updates for 5.0
Ben Darnell [Sun, 4 Mar 2018 18:39:42 +0000 (13:39 -0500)]
Merge pull request #2298 from bdarnell/travis-nightly
travis.yml: Fix build on nightly python
Ben Darnell [Sun, 4 Mar 2018 18:39:24 +0000 (13:39 -0500)]
Merge pull request #2297 from bdarnell/dns-rebinding-docs
docs: Add warnings about DNS rebinding attacks
Ben Darnell [Sun, 4 Mar 2018 18:22:24 +0000 (13:22 -0500)]
docs: Add a prominent warning against threads and WSGI
Ben Darnell [Sun, 4 Mar 2018 17:37:34 +0000 (12:37 -0500)]
travis.yml: Disable coverage in pypy builds
Ben Darnell [Sun, 4 Mar 2018 17:12:41 +0000 (12:12 -0500)]
travis.yml: Fix build on nightly python
Ben Darnell [Sun, 4 Mar 2018 16:52:06 +0000 (11:52 -0500)]
docs: Add warnings about DNS rebinding attacks
Fixes #2256
Ben Darnell [Sun, 4 Mar 2018 00:00:17 +0000 (19:00 -0500)]
Merge pull request #2296 from bdarnell/docs
docs: Small updates
Jacob Kristhammar [Mon, 26 Feb 2018 11:14:44 +0000 (12:14 +0100)]
Remove legacy author comment
Ben Darnell [Fri, 2 Mar 2018 20:53:50 +0000 (15:53 -0500)]
web: Document the type of xsrf_token
Fixes #2279
Ben Darnell [Fri, 2 Mar 2018 20:45:43 +0000 (15:45 -0500)]
ioloop: Fix docstring typo
Fixes #2283
Ben Darnell [Mon, 26 Feb 2018 14:00:47 +0000 (09:00 -0500)]
Merge pull request #2293 from bdarnell/docs
docs: Updates for sphinx 1.7
Ben Darnell [Mon, 26 Feb 2018 13:15:43 +0000 (08:15 -0500)]
docs: Updates for sphinx 1.7
This introduced a new inherit-docstring option that we don't want
(it currently breaks our docs build) and got stricter about `:arg`
types.
Brandon Holbrook [Wed, 21 Feb 2018 02:22:54 +0000 (20:22 -0600)]
Only invoke select_subprotocol() when the client requests it
Ben Darnell [Mon, 12 Feb 2018 14:39:35 +0000 (09:39 -0500)]
Merge pull request #2277 from bdarnell/curl-debug
curl_httpclient: Only call native_str on debug message when needed
Ben Darnell [Mon, 12 Feb 2018 03:21:11 +0000 (22:21 -0500)]
curl_httpclient: Only call native_str on debug message when needed
Some debug messages are binary blobs that should not be decoded.
Fixes #2275
Ben Darnell [Tue, 6 Feb 2018 03:04:22 +0000 (22:04 -0500)]
docs: Clarify python version support release note
Ben Darnell [Tue, 6 Feb 2018 02:34:54 +0000 (21:34 -0500)]
Merge pull request #2270 from polygon/fix/etag304
Fix/etag304
Ben Darnell [Mon, 5 Feb 2018 03:49:02 +0000 (22:49 -0500)]
Merge pull request #2268 from WouldYouKindly/WouldYouKindly-patch-1
Fix typo in URLSpec.__init__ docstring
Jan Dohl [Sat, 3 Feb 2018 22:58:19 +0000 (23:58 +0100)]
Fix erroneous 304 of StaticFileHandler
StaticFileHandler would return a 304 despite the client sending
a non-matching Etag header when If-Modified-Since matches
Jan Dohl [Sat, 3 Feb 2018 22:47:47 +0000 (23:47 +0100)]
Test to reproduce 304 on etag mismatch issue
Alexey [Fri, 2 Feb 2018 21:19:55 +0000 (00:19 +0300)]
Fix typo in URLSpec.__init__ docstring
Ben Darnell [Fri, 2 Feb 2018 01:50:28 +0000 (20:50 -0500)]
Merge pull request #2266 from minrk/yield-null
fix gen.multi with gen.moment
Min RK [Thu, 1 Feb 2018 10:25:41 +0000 (11:25 +0100)]
allow NullFutures in gen.multi
is_future() only accepts 'real' futures, but NullFutures work here, too.
Min RK [Wed, 31 Jan 2018 17:08:40 +0000 (18:08 +0100)]
fix gen.multi with gen.moment
fixes assertion in gen.multi when calling convert_yielded with more than one gen.moment or None
convert_yielded can be called with None or [None].
When it is called with [None], gen.multi gets [gen.moment],
which fails assert(is_future) since it is no longer a real Future
Ben Darnell [Sat, 27 Jan 2018 23:03:10 +0000 (18:03 -0500)]
Merge pull request #2259 from bdarnell/5.0b1
Update release notes and set version to 5.0b1
Ben Darnell [Sat, 27 Jan 2018 22:25:34 +0000 (17:25 -0500)]
Update release notes and set version to 5.0b1
Ben Darnell [Sat, 27 Jan 2018 18:13:49 +0000 (13:13 -0500)]
Merge pull request #2257 from bdarnell/http2
test: Adjust unittest for tornado_http2 compatibility
Ben Darnell [Sat, 27 Jan 2018 16:44:29 +0000 (11:44 -0500)]
test: Adjust unittests for tornado_http2 compatibility
Some recently-introduced tests are failing under tornado_http2, so fix
them.
Ben Darnell [Sat, 27 Jan 2018 02:03:20 +0000 (21:03 -0500)]
Merge pull request #2252 from bdarnell/ioloop-current
ioloop: current() and friends delegate to asyncio
Ben Darnell [Sun, 21 Jan 2018 19:01:42 +0000 (14:01 -0500)]
ioloop: Remove IOLoop.initialized()
It is no longer possible to provide this method with reasonable
semantics.
Ben Darnell [Sun, 21 Jan 2018 18:51:59 +0000 (13:51 -0500)]
ioloop: current() and friends delegate to asyncio
Instead of a redundant IOLoop._current thread-local, pass through
directly to asyncio and maintain a one-to-one mapping of asyncio loops
to IOLoops. This brings us a bit closer to the asyncio-only future.
Ben Darnell [Sat, 27 Jan 2018 01:30:34 +0000 (20:30 -0500)]
Merge pull request #2253 from bdarnell/work
Misc small fixes for 5.0
Ben Darnell [Sat, 27 Jan 2018 01:09:42 +0000 (20:09 -0500)]
travis: Ignore failures on nightly
This is currently failing with setuptools errors.
Ben Darnell [Fri, 26 Jan 2018 23:03:58 +0000 (18:03 -0500)]
asyncio_test: Fix compatibility with Python 3.7 nightlies
Ben Darnell [Mon, 22 Jan 2018 02:23:50 +0000 (21:23 -0500)]
test: It's no longer possible to use `async def` via cython on py34
The asyncio coroutine runner cannot be made to use backports_abc.
Ben Darnell [Mon, 22 Jan 2018 01:12:06 +0000 (20:12 -0500)]
concurrent: Fix importability of tornado.wsgi on app engine
Ben Darnell [Sun, 21 Jan 2018 23:17:47 +0000 (18:17 -0500)]
locks: Avoid reusing Future objects in Event
Now that futures support cancellation, it is unsafe to return the same
Future object to multiple callers.
Fixes #2189
Ben Darnell [Sun, 21 Jan 2018 22:48:55 +0000 (17:48 -0500)]
websocket: write_message consistently raises WebSocketClosedError
Ben Darnell [Sun, 21 Jan 2018 20:30:50 +0000 (15:30 -0500)]
Revert "Fix error in coverage runs under Py3 with a C locale"
This reverts commit
e0c489fd02b042a74845a07dd09e8ce66a2780ca .
That commit was a workaround for old versions of the coverage package.
Fixes #1895
Ben Darnell [Sun, 21 Jan 2018 20:27:34 +0000 (15:27 -0500)]
gen_test: Add test for asyncio.gather
This is additional verification that the asyncio integration is
working as intended.
Fixes #1684
Ben Darnell [Sun, 21 Jan 2018 19:04:23 +0000 (14:04 -0500)]
Merge pull request #2251 from bdarnell/read_into
iostream: Add read_into
Ben Darnell [Sun, 14 Jan 2018 20:45:48 +0000 (15:45 -0500)]
iostream: Add read_into method.
Tests come from Antoine Pitrou's #2193
Fixes #2176
Ben Darnell [Sun, 21 Jan 2018 00:00:30 +0000 (19:00 -0500)]
iostream: Use recv_into and friends in read_from_fd
This has the same memory-allocation behavior as before, but it moves
the buffer out of the recv() call to python code.
Ben Darnell [Mon, 15 Jan 2018 17:16:08 +0000 (12:16 -0500)]
Merge pull request #2249 from bdarnell/pipe-iostream
iostream: Use file objects instead of raw descriptors in PipeIOStream
Ben Darnell [Mon, 15 Jan 2018 03:48:36 +0000 (22:48 -0500)]
netutil_test: Disable error tests on TwistedResolver
These tests are flaky with the new "messages to stderr are errors"
check.
Ben Darnell [Sun, 14 Jan 2018 20:20:51 +0000 (15:20 -0500)]
test: Count writes to stderr as failures
Python 3 logs warnings in destructors if objects responsible for file
descriptors are not explicitly closed. These warnings were previously
being ignored by our test suite unless a human was looking at the log
output, but several recent PRs have introduced these issues. This
change ensures we catch them (and fixes the most recent one in
process_test. The leak has always been there, but the previous commit
caused it to be logged).
Antoine Pitrou [Sun, 22 Oct 2017 17:05:41 +0000 (19:05 +0200)]
iostream: Use file objects instead of raw descriptors in PipeIOStream
This makes the implementation of PipeIOStream more compatible with
socket streams, and allows for more of the test suite to be used with
it.
Extracted from PR #2193
Ben Darnell [Sun, 14 Jan 2018 15:16:58 +0000 (10:16 -0500)]
Merge pull request #2248 from bdarnell/work
ioloop,gen,asyncio: Improvements to IOLoop GC
David Walker [Sun, 14 Jan 2018 00:01:51 +0000 (17:01 -0700)]
Alter documentation to correctly state behavior (#2114)
Correctly document that the result of Condition.wait() is
not to raise a TimeoutError, but rather False.
Ben Darnell [Sat, 13 Jan 2018 22:31:32 +0000 (17:31 -0500)]
ioloop,asyncio: Be more careful to restore old asyncio loop
Any asyncio event loop that was created but neither closed nor set as
current for some thread will log a warning at the end of the test (in
a way that doesn't cause the test to fail). Fix a bug in
make_current() (in which multiple calls would clobber
self.old_asyncio) and use it more consistently when "current" status
changes.
Ben Darnell [Sat, 13 Jan 2018 18:55:32 +0000 (13:55 -0500)]
ioloop: Make clear_current work if called first in a thread
Fixes #2240
Antoine Pitrou [Fri, 29 Dec 2017 17:13:12 +0000 (18:13 +0100)]
Issue #2229: allow GCing of suspended coroutines
A suspended coroutine should be GCed if the underlying loop is closed
and no other outside reference exists to it. However, a suspended coroutine
with a refcycle would be kept alive by the _futures_to_runners mapping.
Instead use a private attribute on the future.
Ben Darnell [Sat, 13 Jan 2018 18:45:30 +0000 (13:45 -0500)]
asyncio: AsyncIOMainLoop.close now closes the underlying loop