]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
6 years agoSpecify that the encoding of file handler is utf-8. 2506/head
garenchan [Thu, 20 Sep 2018 03:36:37 +0000 (11:36 +0800)] 
Specify that the encoding of file handler is utf-8.
Fix issue #2503.

6 years agoAdd thread identity check to add_callback (#2469)
Matthew Rocklin [Sun, 16 Sep 2018 20:09:40 +0000 (16:09 -0400)] 
Add thread identity check to add_callback (#2469)

* Add thread identity check to add_callback

Fixes #2463

This reduces the overhead of add_callback when called on the same thread
as the event loop.  This uses asyncio's call_soon rather than
call_soon_threadsafe.

* Separately define add_callback_from_signal

6 years agoMerge pull request #2500 from bdarnell/master-release-notes
Ben Darnell [Sun, 16 Sep 2018 19:54:48 +0000 (15:54 -0400)] 
Merge pull request #2500 from bdarnell/master-release-notes

docs: 5.1.1 release notes

6 years agodocs: 5.1.1 release notes 2500/head
Ben Darnell [Sun, 16 Sep 2018 17:55:41 +0000 (13:55 -0400)] 
docs: 5.1.1 release notes

6 years agoMerge pull request #2497 from bdarnell/auth-tests
Ben Darnell [Sun, 16 Sep 2018 18:14:13 +0000 (14:14 -0400)] 
Merge pull request #2497 from bdarnell/auth-tests

auth: Forward-port tests from branch5.1

6 years agoauth: Forward-port tests from branch5.1 2497/head
Ben Darnell [Sun, 16 Sep 2018 16:04:52 +0000 (12:04 -0400)] 
auth: Forward-port tests from branch5.1

The bugs fixed in #2496 were already fixed in the 6.0 branch, but the
tests added there are still useful

6 years agoMerge pull request #2494 from mivade/user-guide-fix
Ben Darnell [Sat, 15 Sep 2018 20:41:32 +0000 (16:41 -0400)] 
Merge pull request #2494 from mivade/user-guide-fix

Fix run_in_executor call in user guide

6 years agoMerge pull request #2490 from bdarnell/mypy
Ben Darnell [Sat, 15 Sep 2018 20:40:06 +0000 (16:40 -0400)] 
Merge pull request #2490 from bdarnell/mypy

More mypy annotations

6 years agodocs: Pin sphinx 1.7 2490/head
Ben Darnell [Sat, 15 Sep 2018 20:31:45 +0000 (16:31 -0400)] 
docs: Pin sphinx 1.7

The build currently fails on 1.8 due to https://bugs.python.org/issue34700

6 years agoFix run_in_executor call in user guide 2494/head
Michael V. DePalatis [Sat, 15 Sep 2018 16:03:04 +0000 (10:03 -0600)] 
Fix run_in_executor call in user guide

Addresses #2493.

6 years agohttpserver,http1connection: Add type annotations
Ben Darnell [Mon, 13 Aug 2018 02:51:54 +0000 (22:51 -0400)] 
httpserver,http1connection: Add type annotations

6 years agotcpclient,tcpserver: Add type annotations
Ben Darnell [Sun, 12 Aug 2018 17:01:33 +0000 (13:01 -0400)] 
tcpclient,tcpserver: Add type annotations

6 years agoiostream: Add type annotations
Ben Darnell [Sun, 12 Aug 2018 16:26:00 +0000 (12:26 -0400)] 
iostream: Add type annotations

6 years agoMerge pull request #2472 from peterdn/fix-ioloop-doc-example
Ben Darnell [Thu, 16 Aug 2018 03:02:30 +0000 (23:02 -0400)] 
Merge pull request #2472 from peterdn/fix-ioloop-doc-example

Fix IOLoop doc example code

6 years agoUse spawn_callback method to handle connection 2472/head
Peter Nelson [Tue, 14 Aug 2018 23:29:30 +0000 (18:29 -0500)] 
Use spawn_callback method to handle connection

6 years agoFix IOLoop doc example code
Peter Nelson [Tue, 14 Aug 2018 02:42:45 +0000 (21:42 -0500)] 
Fix IOLoop doc example code

6 years agoioloop,platform: Add type annotations
Ben Darnell [Sun, 12 Aug 2018 03:00:41 +0000 (23:00 -0400)] 
ioloop,platform: Add type annotations

6 years agonetutil: Add type annotations
Ben Darnell [Sat, 11 Aug 2018 23:35:25 +0000 (19:35 -0400)] 
netutil: Add type annotations

6 years agolog,options: Add type annotations
Ben Darnell [Sat, 11 Aug 2018 22:09:02 +0000 (18:09 -0400)] 
log,options: Add type annotations

6 years agolocale: Type-annotate the module
Ben Darnell [Sat, 11 Aug 2018 21:18:16 +0000 (17:18 -0400)] 
locale: Type-annotate the module

6 years agotesting: Type-annotate the module
Ben Darnell [Sat, 11 Aug 2018 20:40:07 +0000 (16:40 -0400)] 
testing: Type-annotate the module

6 years agoMerge pull request #2466 from bdarnell/mypy
Ben Darnell [Sat, 11 Aug 2018 17:43:13 +0000 (13:43 -0400)] 
Merge pull request #2466 from bdarnell/mypy

concurrent, gen: Add type annotations. Expand type checking of tests

6 years agobuild: Test on newer pypy 2466/head
Ben Darnell [Sat, 11 Aug 2018 16:20:49 +0000 (12:20 -0400)] 
build: Test on newer pypy

Originally motivated by segfaults seen when adding type annotations to
gen.py. It didn't actually fix those crashes, but we might as well
update anyway.

6 years agogen: Type annotate the module
Ben Darnell [Sat, 11 Aug 2018 15:27:13 +0000 (11:27 -0400)] 
gen: Type annotate the module

This is a tricky module to type. In some cases mypy just isn't able to
express things (e.g. decorators that preserve the parameter types of
their functions but change the return type), and in others I think
it's possible to do better but I haven't figured out how (preserving
types passed through with_timeout).

6 years agoMerge pull request #2467 from bdarnell/autoreload-test
Ben Darnell [Sat, 11 Aug 2018 16:45:39 +0000 (12:45 -0400)] 
Merge pull request #2467 from bdarnell/autoreload-test

test: Deflake autoreload_test on windows

6 years agotest: Deflake autoreload_test on windows 2467/head
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.

6 years agoMerge pull request #2465 from aaronjheng/license
Ben Darnell [Sat, 11 Aug 2018 16:10:58 +0000 (12:10 -0400)] 
Merge pull request #2465 from aaronjheng/license

include license file in the wheel package

6 years agogen: Remove some dead code
Ben Darnell [Sun, 29 Jul 2018 22:22:17 +0000 (18:22 -0400)] 
gen: Remove some dead code

6 years agoconcurrent: Type-annotate module
Ben Darnell [Sun, 29 Jul 2018 17:59:39 +0000 (13:59 -0400)] 
concurrent: Type-annotate module

6 years agotest: Partially typecheck tests for annotated modules
Ben Darnell [Sun, 29 Jul 2018 16:44:30 +0000 (12:44 -0400)] 
test: Partially typecheck tests for annotated modules

The only type annotations added were those required by mypy. This
found some errors in the original annotations.

6 years agoMerge pull request #2461 from purple4reina/fix-util-type-checking
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.

6 years agoinclude license file in the wheel package 2465/head
aaronjheng [Thu, 9 Aug 2018 07:47:23 +0000 (15:47 +0800)] 
include license file in the wheel package

7 years agoTest configure with string input. 2461/head
Rey Abolofia [Tue, 31 Jul 2018 18:19:49 +0000 (11:19 -0700)] 
Test configure with string input.

7 years agoAlways import Type.
Rey Abolofia [Mon, 30 Jul 2018 23:15:49 +0000 (16:15 -0700)] 
Always import Type.

7 years agoMerge pull request #2452 from bdarnell/mypy
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

7 years agoMerge pull request #2460 from bdarnell/ws-close
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

7 years agoMerge pull request #2459 from aristotll/patch-1
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

7 years agoMerge pull request #2456 from garenchan/bugfix-2455
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'

7 years agoMerge pull request #2454 from silentnights/fix-getaddrinfo-order
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

7 years agowebsocket: Improve detection of closing websocket connections 2460/head
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

7 years agoMerge pull request #2449 from garenchan/bugfix-2448
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

7 years agodocs: Fix python syntax error in the user guide 2459/head
Yao [Wed, 25 Jul 2018 14:55:06 +0000 (22:55 +0800)] 
docs: Fix python syntax error in the user guide

7 years agouse queryone() instead of query() 2456/head
chengkang [Tue, 24 Jul 2018 02:47:28 +0000 (10:47 +0800)] 
use queryone() instead of query()

7 years agofix issue #2455
chengkang [Tue, 24 Jul 2018 01:57:16 +0000 (09:57 +0800)] 
fix issue #2455

7 years agoSort getaddrinfo result based on address family 2454/head
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.

7 years agoimprove testcase for RequestHandler.finish() 2449/head
chengkang [Sun, 22 Jul 2018 05:12:27 +0000 (13:12 +0800)] 
improve testcase for RequestHandler.finish()

7 years agoescape: Type-annotate everything 2452/head
Ben Darnell [Sat, 21 Jul 2018 22:29:59 +0000 (18:29 -0400)] 
escape: Type-annotate everything

7 years agohttputil: Type-annotate all methods
Ben Darnell [Sat, 21 Jul 2018 22:07:16 +0000 (18:07 -0400)] 
httputil: Type-annotate all methods

7 years agoutil: Type-annotate everything
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.

7 years ago*: Add mypy tox config and get it passing
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.

7 years agofix issue #2448
chengkang [Fri, 20 Jul 2018 08:53:05 +0000 (16:53 +0800)] 
fix issue #2448

7 years agoMerge pull request #2445 from s3rvac/fix-grammar-mistake-in-user-guide
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

7 years agoMerge pull request #2441 from garenchan/master
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

7 years agodocs: Fix a grammar mistake in the user guide 2445/head
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"

7 years agoMerge pull request #2444 from bdarnell/travis-update
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

7 years agobuild: Restore python 3.7 in travis 2444/head
Ben Darnell [Sat, 14 Jul 2018 21:46:54 +0000 (17:46 -0400)] 
build: Restore python 3.7 in travis

7 years agoMerge pull request #2443 from bdarnell/drop-py2
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

7 years ago*: Remove Python2 __future__ imports throughout the codebase 2443/head
Ben Darnell [Sat, 14 Jul 2018 15:46:28 +0000 (11:46 -0400)] 
*: Remove Python2 __future__ imports throughout the codebase

7 years agotest: Remove legacy unittest2 compatibility cruft
Ben Darnell [Sat, 14 Jul 2018 15:26:33 +0000 (11:26 -0400)] 
test: Remove legacy unittest2 compatibility cruft

7 years ago*: Remove unnecessary conditional imports
Ben Darnell [Sat, 7 Jul 2018 23:34:55 +0000 (19:34 -0400)] 
*: Remove unnecessary conditional imports

7 years agotest: Clean up unnecessary skips and conditionals
Ben Darnell [Sat, 7 Jul 2018 23:26:50 +0000 (19:26 -0400)] 
test: Clean up unnecessary skips and conditionals

7 years agodocs: Doc and lint updates
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.

7 years agostack_context: Delete the whole module
Ben Darnell [Sat, 7 Jul 2018 21:29:52 +0000 (17:29 -0400)] 
stack_context: Delete the whole module

7 years agoweb: Delete asynchronous decorator
Ben Darnell [Sat, 7 Jul 2018 21:06:20 +0000 (17:06 -0400)] 
web: Delete asynchronous decorator

7 years agowsgi: Remove WSGIAdapter/WSGIApplication
Ben Darnell [Sat, 7 Jul 2018 20:58:22 +0000 (16:58 -0400)] 
wsgi: Remove WSGIAdapter/WSGIApplication

7 years agotwisted: Dust off the twisted web compatibility tests
Ben Darnell [Sat, 7 Jul 2018 20:46:52 +0000 (16:46 -0400)] 
twisted: Dust off the twisted web compatibility tests

7 years agotwisted: Delete TwistedReactor and its tests
Ben Darnell [Sat, 7 Jul 2018 14:39:10 +0000 (10:39 -0400)] 
twisted: Delete TwistedReactor and its tests

7 years agomaint: Delete appengine test scripts
Ben Darnell [Sat, 7 Jul 2018 14:12:35 +0000 (10:12 -0400)] 
maint: Delete appengine test scripts

7 years agoutil: py3 cleanups
Ben Darnell [Sat, 7 Jul 2018 04:31:04 +0000 (00:31 -0400)] 
util: py3 cleanups

7 years agotesting: Simplify imports for python 3
Ben Darnell [Sat, 7 Jul 2018 04:24:59 +0000 (00:24 -0400)] 
testing: Simplify imports for python 3

7 years agolocale,netutil,process: Minor deprecation/py3 updates
Ben Darnell [Sat, 7 Jul 2018 04:19:38 +0000 (00:19 -0400)] 
locale,netutil,process: Minor deprecation/py3 updates

7 years agoiostream: Remove deprecated interfaces
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.

7 years agoioloop: Remove remaining deprecated interfaces
Ben Darnell [Sat, 7 Jul 2018 02:48:57 +0000 (22:48 -0400)] 
ioloop: Remove remaining deprecated interfaces

7 years agohttputil: Remove deprecated interfaces
Ben Darnell [Sat, 7 Jul 2018 02:37:28 +0000 (22:37 -0400)] 
httputil: Remove deprecated interfaces

7 years agohttpclient: Remove callback argument and deprecated error behavior
Ben Darnell [Fri, 6 Jul 2018 23:25:15 +0000 (19:25 -0400)] 
httpclient: Remove callback argument and deprecated error behavior

7 years agoweb,http1connection: Remove callback argument to flush()
Ben Darnell [Fri, 6 Jul 2018 23:03:08 +0000 (19:03 -0400)] 
web,http1connection: Remove callback argument to flush()

7 years agogen: Remove coroutine callback args and other py2 support
Ben Darnell [Fri, 6 Jul 2018 22:56:30 +0000 (18:56 -0400)] 
gen: Remove coroutine callback args and other py2 support

7 years agoescape: Remove (some) python 2 compatibility
Ben Darnell [Fri, 6 Jul 2018 22:47:29 +0000 (18:47 -0400)] 
escape: Remove (some) python 2 compatibility

7 years agoconcurrent: Delete return_future and other deprecated interfaces
Ben Darnell [Fri, 6 Jul 2018 22:39:24 +0000 (18:39 -0400)] 
concurrent: Delete return_future and other deprecated interfaces

7 years agoauth: Remove deprecated callback interfaces
Ben Darnell [Fri, 6 Jul 2018 22:23:22 +0000 (18:23 -0400)] 
auth: Remove deprecated callback interfaces

7 years agogen: Delete legacy YieldPoint interfaces
Ben Darnell [Fri, 6 Jul 2018 21:24:21 +0000 (17:24 -0400)] 
gen: Delete legacy YieldPoint interfaces

7 years agoconcurrent: Delete legacy Future implementation
Ben Darnell [Fri, 6 Jul 2018 21:11:42 +0000 (17:11 -0400)] 
concurrent: Delete legacy Future implementation

7 years agoioloop: Delete PollIOLoop
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.

7 years agobuild: Stop building and testing with python 2.7 and 3.4
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)

7 years agoSet version number to 6.0.dev1
Ben Darnell [Sat, 14 Jul 2018 15:17:18 +0000 (11:17 -0400)] 
Set version number to 6.0.dev1

7 years agoMerge pull request #2442 from bdarnell/finalize-5.1 v5.1.0
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

7 years agoSet version number to 5.1 2442/head
Ben Darnell [Wed, 11 Jul 2018 13:14:00 +0000 (09:14 -0400)] 
Set version number to 5.1

7 years agofix issue #2438 2441/head
chengkang [Wed, 11 Jul 2018 12:29:32 +0000 (20:29 +0800)] 
fix issue #2438

7 years agoMerge pull request #2439 from bdarnell/revert-redirect
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() …

7 years agoRevert "_HTTPConnection: check location on _should_follow_redirect() and retain safe... 2439/head
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

7 years agoMerge pull request #2432 from bdarnell/py37
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

7 years agotest: Increase a timeout to deflake autoreload_test on pypy3 2432/head
Ben Darnell [Wed, 11 Jul 2018 01:28:57 +0000 (21:28 -0400)] 
test: Increase a timeout to deflake autoreload_test on pypy3

7 years agotest: Reduce the size of a test to avoid timeouts
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)

7 years agobuild: Add Python 3.7 to tox and appveyor configs
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.

7 years agoMerge pull request #2437 from bdarnell/work
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

7 years agowsgi: Avoid touching the asyncio event loop at import time 2437/head
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

7 years agodemos: Remove redundant assignment
Ben Darnell [Thu, 28 Jun 2018 01:15:10 +0000 (21:15 -0400)] 
demos: Remove redundant assignment

Fixes #2415

7 years agoMerge pull request #2428 from AlexanderSov/patch-1
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

7 years ago_HTTPConnection: check location on _should_follow_redirect() and retain safe request...
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)

7 years agoFix mistake in command. 2428/head
Alexander [Fri, 22 Jun 2018 09:51:19 +0000 (12:51 +0300)] 
Fix mistake in command.