]>
git.ipfire.org Git - thirdparty/tornado.git/log
Ben Darnell [Sat, 11 Aug 2018 16:14:07 +0000 (12:14 -0400)]
test: Deflake autoreload_test on windows
This sometimes fails with a "file in use" error while cleaning up the
temp directory. Add a sleep and retry in case we've reached our
teardown before the child process has released its locks.
Ben Darnell [Sat, 11 Aug 2018 15:35:20 +0000 (11:35 -0400)]
Merge pull request #2461 from purple4reina/fix-util-type-checking
Always import Type.
Rey Abolofia [Tue, 31 Jul 2018 18:19:49 +0000 (11:19 -0700)]
Test configure with string input.
Rey Abolofia [Mon, 30 Jul 2018 23:15:49 +0000 (16:15 -0700)]
Always import Type.
Ben Darnell [Sun, 29 Jul 2018 16:09:31 +0000 (12:09 -0400)]
Merge pull request #2452 from bdarnell/mypy
Add/update mypy annotations for util, httputil, escape
Ben Darnell [Sun, 29 Jul 2018 16:07:44 +0000 (12:07 -0400)]
Merge pull request #2460 from bdarnell/ws-close
websocket: Improve detection of closing websocket connections
Ben Darnell [Sun, 29 Jul 2018 15:25:32 +0000 (11:25 -0400)]
Merge pull request #2459 from aristotll/patch-1
docs: Fix python syntax error in the user guide
Ben Darnell [Sun, 29 Jul 2018 14:36:08 +0000 (10:36 -0400)]
Merge pull request #2456 from garenchan/bugfix-2455
fix issue #2455: AttributeError: 'list' object has no attribute 'slug'
Ben Darnell [Sun, 29 Jul 2018 14:29:09 +0000 (10:29 -0400)]
Merge pull request #2454 from silentnights/fix-getaddrinfo-order
Sort getaddrinfo result based on address family
Ben Darnell [Sun, 29 Jul 2018 14:25:04 +0000 (10:25 -0400)]
websocket: Improve detection of closing websocket connections
This eliminates the possibility of messages (especially pings) being
sent in the middle of the closing process (which is generally harmless
but results in errors being logged).
Fixes #2447
Ben Darnell [Sun, 29 Jul 2018 13:29:45 +0000 (09:29 -0400)]
Merge pull request #2449 from garenchan/bugfix-2448
fix issue #2448: RequestHandler.finish() future not resolving
Yao [Wed, 25 Jul 2018 14:55:06 +0000 (22:55 +0800)]
docs: Fix python syntax error in the user guide
chengkang [Tue, 24 Jul 2018 02:47:28 +0000 (10:47 +0800)]
use queryone() instead of query()
chengkang [Tue, 24 Jul 2018 01:57:16 +0000 (09:57 +0800)]
fix issue #2455
Silent-Nights [Mon, 23 Jul 2018 13:42:44 +0000 (15:42 +0200)]
Sort getaddrinfo result based on address family
Putting getaddrinfo result in a set to eliminate duplicates causes race
conditions because sets are unordered
For example consider 2 applications try to bind to many random ports at once
in both IPV4 and IPV6.
App1: Bind to random IPV4 address and get port 50000
App2: Bind to random IPV6 address and get port 50000
App2: Try to bind to same port on IPV4 and fails as App1 already bound to it
The same goes for App1
To resolve this, we create the set explicitly outside the loop.
We order the returned list of getaddrinfo based on Address family.
We skip the iteration if the iteration tuple already in the set.
Otherwise we execute the loop.
chengkang [Sun, 22 Jul 2018 05:12:27 +0000 (13:12 +0800)]
improve testcase for RequestHandler.finish()
Ben Darnell [Sat, 21 Jul 2018 22:29:59 +0000 (18:29 -0400)]
escape: Type-annotate everything
Ben Darnell [Sat, 21 Jul 2018 22:07:16 +0000 (18:07 -0400)]
httputil: Type-annotate all methods
Ben Darnell [Sat, 21 Jul 2018 18:14:51 +0000 (14:14 -0400)]
util: Type-annotate everything
There are a few functional changes here, including some changes
related to removing py27.
Ben Darnell [Sat, 21 Jul 2018 17:05:53 +0000 (13:05 -0400)]
*: Add mypy tox config and get it passing
Touch up the old annotations; it's simpler now that we're 3.5+. But
most of the additions here are type:ignore comments.
chengkang [Fri, 20 Jul 2018 08:53:05 +0000 (16:53 +0800)]
fix issue #2448
Ben Darnell [Sun, 15 Jul 2018 22:10:03 +0000 (18:10 -0400)]
Merge pull request #2445 from s3rvac/fix-grammar-mistake-in-user-guide
Fix a grammar mistake in the user guide
Ben Darnell [Sun, 15 Jul 2018 22:09:25 +0000 (18:09 -0400)]
Merge pull request #2441 from garenchan/master
fix issue #2438: clear input in demo projects
Petr Zemek [Sun, 15 Jul 2018 12:45:58 +0000 (14:45 +0200)]
docs: Fix a grammar mistake in the user guide
"coroutines has" -> "coroutines have"
Ben Darnell [Sat, 14 Jul 2018 22:31:41 +0000 (18:31 -0400)]
Merge pull request #2444 from bdarnell/travis-update
build: Restore python 3.7 in travis
Ben Darnell [Sat, 14 Jul 2018 21:46:54 +0000 (17:46 -0400)]
build: Restore python 3.7 in travis
Ben Darnell [Sat, 14 Jul 2018 21:21:36 +0000 (17:21 -0400)]
Merge pull request #2443 from bdarnell/drop-py2
*: Drop support for Python 2
Ben Darnell [Sat, 14 Jul 2018 15:46:28 +0000 (11:46 -0400)]
*: Remove Python2 __future__ imports throughout the codebase
Ben Darnell [Sat, 14 Jul 2018 15:26:33 +0000 (11:26 -0400)]
test: Remove legacy unittest2 compatibility cruft
Ben Darnell [Sat, 7 Jul 2018 23:34:55 +0000 (19:34 -0400)]
*: Remove unnecessary conditional imports
Ben Darnell [Sat, 7 Jul 2018 23:26:50 +0000 (19:26 -0400)]
test: Clean up unnecessary skips and conditionals
Ben Darnell [Sat, 7 Jul 2018 22:53:49 +0000 (18:53 -0400)]
docs: Doc and lint updates
Just enough to unbreak the build for now.
Ben Darnell [Sat, 7 Jul 2018 21:29:52 +0000 (17:29 -0400)]
stack_context: Delete the whole module
Ben Darnell [Sat, 7 Jul 2018 21:06:20 +0000 (17:06 -0400)]
web: Delete asynchronous decorator
Ben Darnell [Sat, 7 Jul 2018 20:58:22 +0000 (16:58 -0400)]
wsgi: Remove WSGIAdapter/WSGIApplication
Ben Darnell [Sat, 7 Jul 2018 20:46:52 +0000 (16:46 -0400)]
twisted: Dust off the twisted web compatibility tests
Ben Darnell [Sat, 7 Jul 2018 14:39:10 +0000 (10:39 -0400)]
twisted: Delete TwistedReactor and its tests
Ben Darnell [Sat, 7 Jul 2018 14:12:35 +0000 (10:12 -0400)]
maint: Delete appengine test scripts
Ben Darnell [Sat, 7 Jul 2018 04:31:04 +0000 (00:31 -0400)]
util: py3 cleanups
Ben Darnell [Sat, 7 Jul 2018 04:24:59 +0000 (00:24 -0400)]
testing: Simplify imports for python 3
Ben Darnell [Sat, 7 Jul 2018 04:19:38 +0000 (00:19 -0400)]
locale,netutil,process: Minor deprecation/py3 updates
Ben Darnell [Sat, 7 Jul 2018 04:13:36 +0000 (00:13 -0400)]
iostream: Remove deprecated interfaces
This is the riskiest change in this series since it does some internal
refactoring to get rid of some callback-related machinery.
Ben Darnell [Sat, 7 Jul 2018 02:48:57 +0000 (22:48 -0400)]
ioloop: Remove remaining deprecated interfaces
Ben Darnell [Sat, 7 Jul 2018 02:37:28 +0000 (22:37 -0400)]
httputil: Remove deprecated interfaces
Ben Darnell [Fri, 6 Jul 2018 23:25:15 +0000 (19:25 -0400)]
httpclient: Remove callback argument and deprecated error behavior
Ben Darnell [Fri, 6 Jul 2018 23:03:08 +0000 (19:03 -0400)]
web,http1connection: Remove callback argument to flush()
Ben Darnell [Fri, 6 Jul 2018 22:56:30 +0000 (18:56 -0400)]
gen: Remove coroutine callback args and other py2 support
Ben Darnell [Fri, 6 Jul 2018 22:47:29 +0000 (18:47 -0400)]
escape: Remove (some) python 2 compatibility
Ben Darnell [Fri, 6 Jul 2018 22:39:24 +0000 (18:39 -0400)]
concurrent: Delete return_future and other deprecated interfaces
Ben Darnell [Fri, 6 Jul 2018 22:23:22 +0000 (18:23 -0400)]
auth: Remove deprecated callback interfaces
Ben Darnell [Fri, 6 Jul 2018 21:24:21 +0000 (17:24 -0400)]
gen: Delete legacy YieldPoint interfaces
Ben Darnell [Fri, 6 Jul 2018 21:11:42 +0000 (17:11 -0400)]
concurrent: Delete legacy Future implementation
Ben Darnell [Fri, 6 Jul 2018 21:08:44 +0000 (17:08 -0400)]
ioloop: Delete PollIOLoop
This was py2-only and is no longer used.
Ben Darnell [Fri, 6 Jul 2018 20:47:50 +0000 (16:47 -0400)]
build: Stop building and testing with python 2.7 and 3.4
Also temporarily remove nightly from the list, because travis's
"nightly" on trusty is pinned to an alpha of 3.7 with some slightly
different behaviors (testing on 3.7 is covered by appveyor)
Ben Darnell [Sat, 14 Jul 2018 15:17:18 +0000 (11:17 -0400)]
Set version number to 6.0.dev1
Ben Darnell [Wed, 11 Jul 2018 13:25:17 +0000 (09:25 -0400)]
Merge pull request #2442 from bdarnell/finalize-5.1
Set version number to 5.1
Ben Darnell [Wed, 11 Jul 2018 13:14:00 +0000 (09:14 -0400)]
Set version number to 5.1
chengkang [Wed, 11 Jul 2018 12:29:32 +0000 (20:29 +0800)]
fix issue #2438
Ben Darnell [Wed, 11 Jul 2018 02:32:24 +0000 (22:32 -0400)]
Merge pull request #2439 from bdarnell/revert-redirect
Revert "_HTTPConnection: check location on _should_follow_redirect() …
Ben Darnell [Wed, 11 Jul 2018 02:04:15 +0000 (22:04 -0400)]
Revert "_HTTPConnection: check location on _should_follow_redirect() and retain safe request when following redirects (#2409)"
This reverts commit
859a038eb9c1af99d3871c9972f0826a1d05475d .
This commit was merged after the release of 5.1b1 with insufficient
consideration and testing. I'll bring this back in the 6.0 cycle with
a test
Ben Darnell [Wed, 11 Jul 2018 01:46:11 +0000 (21:46 -0400)]
Merge pull request #2432 from bdarnell/py37
build: Add Python 3.7 to tox and travis configs
Ben Darnell [Wed, 11 Jul 2018 01:28:57 +0000 (21:28 -0400)]
test: Increase a timeout to deflake autoreload_test on pypy3
Ben Darnell [Wed, 11 Jul 2018 00:31:29 +0000 (20:31 -0400)]
test: Reduce the size of a test to avoid timeouts
This test times out in SSL mode on Python 3.7 64-bit on windows on
appveyor (but 32-bit and older pythons are fine)
Ben Darnell [Fri, 29 Jun 2018 17:54:23 +0000 (13:54 -0400)]
build: Add Python 3.7 to tox and appveyor configs
Not in travis yet because getting python 3.7 on travis is more complicated.
Ben Darnell [Fri, 6 Jul 2018 19:17:03 +0000 (15:17 -0400)]
Merge pull request #2437 from bdarnell/work
wsgi: Avoid touching the asyncio event loop at import time
Ben Darnell [Fri, 6 Jul 2018 18:49:25 +0000 (14:49 -0400)]
wsgi: Avoid touching the asyncio event loop at import time
Rewrite import_test. Its original purpose of augmenting our once-poor
test coverage, but it can now be useful for ensuring the absence of
import-time side effects.
Fixes #2426
Ben Darnell [Thu, 28 Jun 2018 01:15:10 +0000 (21:15 -0400)]
demos: Remove redundant assignment
Fixes #2415
Ben Darnell [Sat, 30 Jun 2018 17:02:18 +0000 (13:02 -0400)]
Merge pull request #2428 from AlexanderSov/patch-1
Add space to psql command
garenchan [Thu, 28 Jun 2018 01:08:41 +0000 (09:08 +0800)]
_HTTPConnection: check location on _should_follow_redirect() and retain safe request when following redirects (#2409)
Alexander [Fri, 22 Jun 2018 09:51:19 +0000 (12:51 +0300)]
Fix mistake in command.
Ben Darnell [Mon, 11 Jun 2018 13:04:46 +0000 (09:04 -0400)]
Merge pull request #2418 from bdarnell/5.1-beta
Set version number to 5.1b1
Ben Darnell [Mon, 11 Jun 2018 03:25:13 +0000 (23:25 -0400)]
Set version number to 5.1b1
Ben Darnell [Mon, 11 Jun 2018 03:24:29 +0000 (23:24 -0400)]
Update release notes for last additions to 5.1
Ben Darnell [Mon, 11 Jun 2018 02:48:52 +0000 (22:48 -0400)]
Merge pull request #2417 from bdarnell/test-deprecation
test: Convert more tests to non-deprecated interfaces
Ben Darnell [Mon, 11 Jun 2018 02:19:58 +0000 (22:19 -0400)]
test: Convert more tests to non-deprecated interfaces
Now the only tests using ignore_deprecation are the ones actually
testing deprecated interfaces, so the tests can be removed in 6.0.
Ben Darnell [Sun, 10 Jun 2018 21:29:26 +0000 (17:29 -0400)]
Merge pull request #2416 from bdarnell/http-response-times
httpclient: Improve HTTPResonse time info
Ben Darnell [Sun, 10 Jun 2018 21:08:15 +0000 (17:08 -0400)]
httpclient: Improve HTTPResonse time info
The HTTPResponse.request_time attribute is now consistent between curl
and simple HTTP clients (it excludes queue time in both cases). Added
a start_time attribute which can be used to see when the network
processing started.
Replaces #1032
Ben Darnell [Sun, 3 Jun 2018 18:41:01 +0000 (14:41 -0400)]
Merge pull request #2412 from bdarnell/options-parse-string
options: parse_config_file accepts string values
Ben Darnell [Sun, 3 Jun 2018 18:24:02 +0000 (14:24 -0400)]
options: Remove dead code, test and lint updates
Ben Darnell [Sun, 3 Jun 2018 18:00:57 +0000 (14:00 -0400)]
Merge branch 'master' into HEAD
Ben Darnell [Sun, 3 Jun 2018 15:36:56 +0000 (11:36 -0400)]
Merge pull request #2411 from bdarnell/multipart-filename
httputil: Support non-ascii filenames in multipart uploads
Ben Darnell [Sun, 3 Jun 2018 03:17:20 +0000 (23:17 -0400)]
httputil: Fix rfc2231 for python2
Add a test that goes through parse_multipart_form_data
Ben Darnell [Sun, 3 Jun 2018 02:56:46 +0000 (22:56 -0400)]
Merge commit 'pull/origin/869' into multipart-filename
Ben Darnell [Sat, 2 Jun 2018 16:41:52 +0000 (12:41 -0400)]
Merge pull request #2410 from garenchan/bugfix-demo-s3-server
demo: update s3server to newest python
Ben Darnell [Sat, 2 Jun 2018 16:39:08 +0000 (12:39 -0400)]
Merge pull request #2406 from kaishuu0123/fix/demo-blog-compose
fix blog demo. (GET ComposeHandler)
chengkang [Fri, 1 Jun 2018 14:03:00 +0000 (22:03 +0800)]
demo: update s3server to newest python
Koki Oyatsu [Wed, 30 May 2018 15:40:25 +0000 (00:40 +0900)]
fix blog demo. (GET ComposeHandler)
Ben Darnell [Mon, 28 May 2018 00:25:52 +0000 (20:25 -0400)]
Merge pull request #2402 from ploxiln/pycurl_py3_justbytes
CurlAsyncHTTPClient: remove ubuntu-12.10 python3 fix
Pierce Lopez [Thu, 24 May 2018 15:48:38 +0000 (11:48 -0400)]
CurlAsyncHTTPClient: remove ubuntu-12.10 python3 fix
No need to utf8() what is passed to WRITEFUNCTION, it will always
be bytes on python3 for upstream pycurl on python3.
The ubuntu-12.10 variant is long gone.
Ben Darnell [Sun, 20 May 2018 21:15:17 +0000 (17:15 -0400)]
Merge pull request #2397 from bdarnell/password-encoding
httpclient: Support non-ascii characters in usernames and passwords
Ben Darnell [Sun, 20 May 2018 18:37:09 +0000 (14:37 -0400)]
httpclient: Improve non-ascii characters in HTTP auth
- Use NFC as required by the spec
- Fix string-concat exceptions on py2
- Test both curl and simple http clients for basic auth
- Do the same for proxy auth in curl
Piotr Tylenda [Mon, 8 May 2017 19:33:04 +0000 (21:33 +0200)]
Fix non-ascii characters support in curl_httpclient username and password
Ben Darnell [Sun, 20 May 2018 15:47:23 +0000 (11:47 -0400)]
Merge pull request #2395 from bdarnell/deflake
asyncio: Fix a race between close and initialize
Ben Darnell [Sun, 20 May 2018 15:28:03 +0000 (11:28 -0400)]
asyncio: Fix a race between close and initialize
The close method of one IOLoop could race with the initialize method
of another one, leading to KeyErrors raised in close().
Fixes #2367
Ben Darnell [Sun, 20 May 2018 15:10:45 +0000 (11:10 -0400)]
test: Fix ResolveTimeoutTestCase
The dummy resolver used here was not correctly adapted for changes in
netutil, and as a result the test was incorrect (it checked for
TypeError instead of a timeout) and flaky (occasionally it would get a
timeout error anyway).
Ben Darnell [Sun, 20 May 2018 14:51:28 +0000 (10:51 -0400)]
Merge pull request #2393 from bdarnell/autoreload-wrapper
autoreload: Preserve wrapper with internal reload
Ben Darnell [Sun, 20 May 2018 03:28:45 +0000 (23:28 -0400)]
autoreload: Improve autoreload wrapper on windows
On platforms without execv(), we must spawn a separate subprocess.
This breaks down when an internal autoreload is firing in a wrapped
process, since the internal reload raises an exception with the
wrapper catches (triggering a second reload and another copy of the
process).
Ben Darnell [Sat, 19 May 2018 14:24:13 +0000 (10:24 -0400)]
autoreload: Fix wrapper preservation for Python 3
The `spec` branch needs special handling too. Update the test to
correctly test the desired situation (and simplify by removing the
separate toucher process).
Ben Darnell [Sun, 20 May 2018 02:53:44 +0000 (22:53 -0400)]
Merge pull request #2394 from bdarnell/finish-return-future
web: finish() and render() now return Futures
Ben Darnell [Sun, 20 May 2018 00:46:23 +0000 (20:46 -0400)]
Merge pull request #2392 from bdarnell/enoprotoopt
iostream,netutil: Ignore ENOPROTOOPT errors from SO_REUSEADDR or SO_ERROR