]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
8 years agohttpserver: remove unused no_keep_alive attribute 2074/head
Pierce Lopez [Mon, 5 Jun 2017 17:22:39 +0000 (13:22 -0400)] 
httpserver: remove unused no_keep_alive attribute

still a parameter passed on to HTTP1Connection

8 years agohttp1connection: add "Connection: close" header if appropriate
Pierce Lopez [Mon, 5 Jun 2017 04:48:45 +0000 (00:48 -0400)] 
http1connection: add "Connection: close" header if appropriate

When HTTP1Connection acts as the server, it closes the connection
after writing the response if the client includes the
"Connection: close" header in the request, or if the `no_keep_alive`
option is set to True in the constructor.

According to https://tools.ietf.org/html/rfc7230#section-6.6

> The server SHOULD send a "close" connection option in its final
response on that connection.

It was possible for an Application to set the Connection header
appropriately. But it is very helpful for tornado to take care of
this automatically, particularly if "close" was specified in a
request header.

8 years agoMerge pull request #2072 from bdarnell/asyncio-default
Ben Darnell [Sun, 4 Jun 2017 14:05:41 +0000 (10:05 -0400)] 
Merge pull request #2072 from bdarnell/asyncio-default

ioloop: Make asyncio the default when available

8 years agoioloop: Make asyncio the default when available 2072/head
Ben Darnell [Sat, 3 Jun 2017 20:08:44 +0000 (16:08 -0400)] 
ioloop: Make asyncio the default when available

In addition to changing the configurable default, add a special case
in IOLoop.current() so that the current IOLoop will be backed by
the main asyncio event loop.

8 years agoioloop: Add tests for IOLoop configuration
Ben Darnell [Sat, 3 Jun 2017 21:08:51 +0000 (17:08 -0400)] 
ioloop: Add tests for IOLoop configuration

8 years agoMerge pull request #2063 from bdarnell/ioloop-instance
Ben Darnell [Mon, 29 May 2017 16:05:11 +0000 (12:05 -0400)] 
Merge pull request #2063 from bdarnell/ioloop-instance

ioloop: Redefine instance() in terms of current()

8 years agoMerge pull request #2064 from bdarnell/cloexec
Ben Darnell [Mon, 29 May 2017 15:23:03 +0000 (11:23 -0400)] 
Merge pull request #2064 from bdarnell/cloexec

tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

8 years agotcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado 2064/head
Ben Darnell [Mon, 29 May 2017 00:10:01 +0000 (20:10 -0400)] 
tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

PR #1984 was based on the mistaken belief that we were already
doing this (and in python 3.4+, it's true, thanks to PEP 446). This
fixes a regression introduced in Tornado 4.5 in which autoreload would
leak file descriptors and leave client connections hanging.

Fixes #2057

8 years agoioloop: Redefine instance() in terms of current() 2063/head
Ben Darnell [Sun, 28 May 2017 14:44:55 +0000 (10:44 -0400)] 
ioloop: Redefine instance() in terms of current()

This aligns us more closely with asyncio, which only has a single
get_event_loop() function. Most uses of instance() are simply a
holdover from before current() was introduced and are not actually
relying on its slightly different behavior, so we redefine it (and the
related methods install(), initialized(), and clear_instance()) in
terms of current().

8 years agoMerge pull request #2062 from bdarnell/configure-pollioloop
Ben Darnell [Sat, 27 May 2017 23:49:38 +0000 (19:49 -0400)] 
Merge pull request #2062 from bdarnell/configure-pollioloop

ioloop: Make PollIOLoop separately configurable

8 years agoioloop: Make PollIOLoop separately configurable 2062/head
Ben Darnell [Sat, 27 May 2017 23:11:35 +0000 (19:11 -0400)] 
ioloop: Make PollIOLoop separately configurable

This makes it possible to construct a PollIOLoop even when the default
IOLoop is configured to something else.

8 years agoutil: Enable multiple configurable bases in one hierarchy
Ben Darnell [Sat, 27 May 2017 23:10:45 +0000 (19:10 -0400)] 
util: Enable multiple configurable bases in one hierarchy

This allows a mid-level class like PollIOLoop to have its own
configurability.

8 years agoMerge pull request #2052 from bdarnell/deprecated
Ben Darnell [Sat, 27 May 2017 14:28:43 +0000 (10:28 -0400)] 
Merge pull request #2052 from bdarnell/deprecated

all: Remove deprecated io_loop arguments

8 years agoMerge pull request #2028 from pitrou/close_exc_info
Ben Darnell [Fri, 26 May 2017 02:13:49 +0000 (22:13 -0400)] 
Merge pull request #2028 from pitrou/close_exc_info

Avoid IOStream.close(exc_info=True)

8 years agoconcurrent: Remove use of self.io_loop from run_on_executor 2052/head
Ben Darnell [Mon, 22 May 2017 05:03:46 +0000 (01:03 -0400)] 
concurrent: Remove use of self.io_loop from run_on_executor

8 years agoall: Remove deprecated io_loop arguments
Ben Darnell [Mon, 22 May 2017 03:57:46 +0000 (23:57 -0400)] 
all: Remove deprecated io_loop arguments

IOLoop.current() is now used in all cases; it is no longer possible to
pass IOLoops around and use them directly. This occasionally requires
awkward workarounds with IOLoop.run_sync, but mainly in test code
(and the synchronous HTTPClient).

8 years agotesting: Remove deprecated get_unused_port()
Ben Darnell [Sun, 21 May 2017 23:16:58 +0000 (19:16 -0400)] 
testing: Remove deprecated get_unused_port()

This function never did a good job and has long since been deprecated
in favor of bind_unused_port.

8 years agoMerge pull request #2002 from nvllsvm/master
Ben Darnell [Sun, 21 May 2017 22:17:38 +0000 (18:17 -0400)] 
Merge pull request #2002 from nvllsvm/master

Fetch absolute URL in AsyncHTTPTestCase

8 years agoMerge pull request #2051 from bdarnell/appveyor-speedup
Ben Darnell [Sun, 21 May 2017 20:42:40 +0000 (16:42 -0400)] 
Merge pull request #2051 from bdarnell/appveyor-speedup

build: Speed up appveyor tests by not running the full matrix.

8 years agobuild: Speed up appveyor tests by not running the full matrix. 2051/head
Ben Darnell [Sun, 21 May 2017 16:15:19 +0000 (12:15 -0400)] 
build: Speed up appveyor tests by not running the full matrix.

Only run partial tests in two of the four environments.

8 years agoMerge pull request #2050 from bdarnell/appveyor-config
Ben Darnell [Sun, 21 May 2017 15:41:40 +0000 (11:41 -0400)] 
Merge pull request #2050 from bdarnell/appveyor-config

build: Don't double-test on appveyor

8 years agoMerge pull request #2048 from bdarnell/option-redefinition
Ben Darnell [Sun, 21 May 2017 02:50:12 +0000 (22:50 -0400)] 
Merge pull request #2048 from bdarnell/option-redefinition

options: Report redefinition errors when underscores are used

8 years agoMerge pull request #2045 from bdarnell/websocket-raise
Ben Darnell [Sun, 21 May 2017 02:49:47 +0000 (22:49 -0400)] 
Merge pull request #2045 from bdarnell/websocket-raise

websocket: Don't swallow exceptions in _write_frame

8 years agoMerge pull request #2038 from schlamar/patch-2
Ben Darnell [Sun, 21 May 2017 00:00:03 +0000 (20:00 -0400)] 
Merge pull request #2038 from schlamar/patch-2

don't check error code in test_set_close_exec

8 years agoMerge pull request #2047 from bdarnell/assert-pid
Ben Darnell [Sat, 20 May 2017 23:56:48 +0000 (19:56 -0400)] 
Merge pull request #2047 from bdarnell/assert-pid

ioloop: Document the incompatibility of IOLoop and fork()

8 years agoMerge pull request #2046 from bdarnell/cookie-docs
Ben Darnell [Sat, 20 May 2017 21:47:56 +0000 (17:47 -0400)] 
Merge pull request #2046 from bdarnell/cookie-docs

web: Clarify cookie method docs

8 years agobuild: Don't double-test on appveyor 2050/head
Ben Darnell [Sat, 20 May 2017 19:41:07 +0000 (15:41 -0400)] 
build: Don't double-test on appveyor

Pointed out in #2028

8 years agoTest fetch full URL if applicable 2002/head
Andrew Rabert [Wed, 5 Apr 2017 02:29:46 +0000 (22:29 -0400)] 
Test fetch full URL if applicable

8 years agoMerge pull request #2024 from pjknkda/master
Ben Darnell [Sat, 20 May 2017 18:53:19 +0000 (14:53 -0400)] 
Merge pull request #2024 from pjknkda/master

websocket: optimize C websocket_mask function

8 years agoMerge pull request #2022 from coldnight/master
Ben Darnell [Sat, 20 May 2017 17:57:18 +0000 (13:57 -0400)] 
Merge pull request #2022 from coldnight/master

Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`

8 years agooptions: Report redefinition errors when underscores are used 2048/head
Ben Darnell [Sat, 20 May 2017 17:44:08 +0000 (13:44 -0400)] 
options: Report redefinition errors when underscores are used

Fixes #2020

8 years agowebsocket: Don't swallow exceptions in _write_frame 2045/head
Ben Darnell [Sat, 20 May 2017 16:09:58 +0000 (12:09 -0400)] 
websocket: Don't swallow exceptions in _write_frame

Swallowing the exception violated the method's interface (by returning
None instead of a Future), and differs from stream-closed behavior in
other contexts in Tornado.

Fixes #1980

8 years agoioloop: Document the incompatibility of IOLoop and fork() 2047/head
Ben Darnell [Sat, 20 May 2017 17:01:07 +0000 (13:01 -0400)] 
ioloop: Document the incompatibility of IOLoop and fork()

Fixes #2004

8 years agoweb: Clarify cookie method docs 2046/head
Ben Darnell [Sat, 20 May 2017 16:29:55 +0000 (12:29 -0400)] 
web: Clarify cookie method docs

Be explicit that get_cookie cannot see the cookies set within the
current request, avoiding confusion as seen in #1993

8 years agoMerge pull request #1979 from SuminAndrew/responses-py2-py34
Ben Darnell [Sat, 20 May 2017 16:19:04 +0000 (12:19 -0400)] 
Merge pull request #1979 from SuminAndrew/responses-py2-py34

web: Don't raise on unknown HTTP response codes

8 years agoBump master version to 5.0.dev1
Ben Darnell [Sat, 20 May 2017 15:40:08 +0000 (11:40 -0400)] 
Bump master version to 5.0.dev1

8 years agodon't check error code in test_set_close_exec 2038/head
Marc Schlaich [Mon, 8 May 2017 13:29:42 +0000 (15:29 +0200)] 
don't check error code in test_set_close_exec

8 years agoAvoid IOStream.close(exc_info=True) 2028/head
Antoine Pitrou [Thu, 27 Apr 2017 14:29:10 +0000 (16:29 +0200)] 
Avoid IOStream.close(exc_info=True)

close(exc_info=True) calls sys.exc_info() to get the "current" exception.
Unfortunately, on Python 2 this is the last raised exception even if it
was caught and silenced (by contrast with Python 3, which has lexically
nested exceptions).  This could set ``IOStream.error`` and therefore
``TCPClient.connect``'s raised exception to the wrong error.

Fix by passing the explicit error instance instead.

8 years agoMerge pull request #2025 from chrisgavin/python3
A. Jesse Jiryu Davis [Wed, 26 Apr 2017 13:44:17 +0000 (08:44 -0500)] 
Merge pull request #2025 from chrisgavin/python3

Fix file upload demo on Python 2.

8 years agofix build failure in MSVC compiler 2024/head
Jungkook Park [Wed, 26 Apr 2017 04:12:28 +0000 (13:12 +0900)] 
fix build failure in MSVC compiler

8 years agoFix file upload demo on Python 2. 2025/head
Chris Gavin [Tue, 25 Apr 2017 20:40:22 +0000 (21:40 +0100)] 
Fix file upload demo on Python 2.

8 years agowebsocket: optimize C mask extension
Jungkook Park [Tue, 25 Apr 2017 14:45:40 +0000 (23:45 +0900)] 
websocket: optimize C mask extension

8 years agoFix CurlAsyncHTTPClient cause memory leak with `force_instance=True` 2022/head
wanghui [Fri, 21 Apr 2017 11:30:54 +0000 (19:30 +0800)] 
Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`

The CurlAsyncHTTPClient will cause memory leak when set `force_instance=True`,
because the `self._multi` and `self._force_timeout_callback` hold some methods
that belong the instance of `CurlAsyncHTTPClient`, it will cause circular reference.

8 years agoFix header for 4.5.1 release notes
Ben Darnell [Thu, 20 Apr 2017 15:39:58 +0000 (11:39 -0400)] 
Fix header for 4.5.1 release notes

8 years agoVersion 4.5.1 v4.5.1
Ben Darnell [Thu, 20 Apr 2017 13:32:04 +0000 (09:32 -0400)] 
Version 4.5.1

8 years agoMerge pull request #2019 from bdarnell/colorama-fix
Ben Darnell [Thu, 20 Apr 2017 03:16:38 +0000 (23:16 -0400)] 
Merge pull request #2019 from bdarnell/colorama-fix

log: Fix color logging detection

8 years agolog: Fix color logging detection 2019/head
Ben Darnell [Thu, 20 Apr 2017 01:38:57 +0000 (21:38 -0400)] 
log: Fix color logging detection

The previous logic would fail whenever curses is missing (which is
always true on windows, and is occasionally true on other platforms)
and colorama is installed but not initialized in this process (this is
a common occurrence for users of jupyter and ipython on windows).

Fixes #2013
Fixes #2015

8 years agoMerge pull request #2018 from aetherson/master
Ben Darnell [Thu, 20 Apr 2017 01:35:38 +0000 (21:35 -0400)] 
Merge pull request #2018 from aetherson/master

fix backwards compatibility of url_concat for args=None

8 years agofix backwards compatibility of url_concat for args=None 2018/head
Andy Anderson [Wed, 19 Apr 2017 15:43:43 +0000 (10:43 -0500)] 
fix backwards compatibility of url_concat for args=None

8 years agoSet version to 4.5 v4.5.0
Ben Darnell [Sun, 16 Apr 2017 23:46:22 +0000 (19:46 -0400)] 
Set version to 4.5

8 years agoMerge pull request #2011 from bdarnell/websocket-render
Ben Darnell [Sat, 15 Apr 2017 20:51:00 +0000 (16:51 -0400)] 
Merge pull request #2011 from bdarnell/websocket-render

websocket: Fix use of render_string in websocket handlers

8 years agowebsocket: Fix use of render_string in websocket handlers 2011/head
Ben Darnell [Sat, 15 Apr 2017 16:53:28 +0000 (12:53 -0400)] 
websocket: Fix use of render_string in websocket handlers

PR #1917 caused websocket connections to be "finished" early, which
broke the use of render_string by setting self.ui to None.

Fixes #2010

8 years agoMerge pull request #2009 from methane/travis
Ben Darnell [Sat, 15 Apr 2017 16:45:33 +0000 (12:45 -0400)] 
Merge pull request #2009 from methane/travis

travis: fix using wrong Python version

8 years agotravis: Skip "nodeps" build on pypy3 2009/head
Ben Darnell [Sat, 15 Apr 2017 15:03:21 +0000 (11:03 -0400)] 
travis: Skip "nodeps" build on pypy3

virtualenv (or pip, or setuptools) no longer supports py32, so this
won't work until travis has pypy3 3.5 available.

8 years agouse new virtualenv
INADA Naoki [Thu, 13 Apr 2017 02:21:32 +0000 (11:21 +0900)] 
use new virtualenv

8 years agotravis: fix using wrong Python version
INADA Naoki [Thu, 13 Apr 2017 01:57:40 +0000 (10:57 +0900)] 
travis: fix using wrong Python version

8 years agoBump to 4.5b2, update release notes
Ben Darnell [Tue, 11 Apr 2017 02:43:04 +0000 (22:43 -0400)] 
Bump to 4.5b2, update release notes

8 years agoMerge pull request #2006 from bdarnell/cleanups
Ben Darnell [Mon, 10 Apr 2017 13:13:16 +0000 (09:13 -0400)] 
Merge pull request #2006 from bdarnell/cleanups

Cleanups from various linters

8 years agoMerge pull request #2005 from bdarnell/auth-facebook-expires
Ben Darnell [Mon, 10 Apr 2017 13:08:37 +0000 (09:08 -0400)] 
Merge pull request #2005 from bdarnell/auth-facebook-expires

auth: Update, doc, and test the facebook session_expires field

8 years agodocs: Add uncovered function 2006/head
Ben Darnell [Mon, 10 Apr 2017 03:18:31 +0000 (23:18 -0400)] 
docs: Add uncovered function

8 years ago*: Fix pyflakes warnings
Ben Darnell [Mon, 10 Apr 2017 03:18:18 +0000 (23:18 -0400)] 
*: Fix pyflakes warnings

8 years ago*: Run the new autopep8
Ben Darnell [Mon, 10 Apr 2017 03:07:00 +0000 (23:07 -0400)] 
*: Run the new autopep8

Mainly adds a bunch of blank lines.

8 years agomaint: Update requirements
Ben Darnell [Mon, 10 Apr 2017 03:04:28 +0000 (23:04 -0400)] 
maint: Update requirements

8 years agoauth: Update, doc, and test the facebook session_expires field 2005/head
Ben Darnell [Mon, 10 Apr 2017 02:54:34 +0000 (22:54 -0400)] 
auth: Update, doc, and test the facebook session_expires field

This was recently broken by the move from url-encoding to json.

Closes #2001

8 years agoFetch full URL if applicable
Andrew Rabert [Wed, 5 Apr 2017 02:29:34 +0000 (22:29 -0400)] 
Fetch full URL if applicable

8 years agoMerge pull request #1999 from bdarnell/tcpclient-test
Ben Darnell [Sun, 2 Apr 2017 20:46:51 +0000 (16:46 -0400)] 
Merge pull request #1999 from bdarnell/tcpclient-test

tcpclient_test: Attempt to deflake on windows

8 years agowebsocket: Impose a size limit on incoming websocket messages (#1997)
Ben Darnell [Sun, 2 Apr 2017 14:52:43 +0000 (10:52 -0400)] 
websocket: Impose a size limit on incoming websocket messages (#1997)

8 years agotcpclient_test: Attempt to deflake on windows 1999/head
Ben Darnell [Sun, 2 Apr 2017 14:51:41 +0000 (10:51 -0400)] 
tcpclient_test: Attempt to deflake on windows

It appears that on windows the client connect call can sometimes
succeed before the server has processed the request, so introduce
additional synchronization.

8 years agoMerge branch 'branch4.4'
Ben Darnell [Sat, 1 Apr 2017 18:27:25 +0000 (14:27 -0400)] 
Merge branch 'branch4.4'

8 years agoVersion bump and release notes for 4.4.3 branch4.4 v4.4.3
Ben Darnell [Thu, 30 Mar 2017 13:17:36 +0000 (09:17 -0400)] 
Version bump and release notes for 4.4.3

8 years agoauth: Facebook now returns auth tokens in json instead of url-encoded
Dayne Jones [Thu, 30 Mar 2017 01:43:07 +0000 (21:43 -0400)] 
auth: Facebook now returns auth tokens in json instead of url-encoded

Fixes #1992

8 years agoauth: Facebook now returns auth tokens in json instead of url-encoded
Dayne Jones [Thu, 30 Mar 2017 01:43:07 +0000 (21:43 -0400)] 
auth: Facebook now returns auth tokens in json instead of url-encoded

Fixes #1992

8 years agoMerge pull request #1989 from bdarnell/appveyor36
Ben Darnell [Mon, 27 Mar 2017 14:42:34 +0000 (10:42 -0400)] 
Merge pull request #1989 from bdarnell/appveyor36

appveyor: Build for python 3.5 and 3.6

8 years agodo not raise exceptions on unknown status codes 1979/head
Andrey Sumin [Fri, 24 Mar 2017 14:03:27 +0000 (17:03 +0300)] 
do not raise exceptions on unknown status codes

8 years agoappveyor: Build for python 3.5 and 3.6 1989/head
Ben Darnell [Sun, 26 Mar 2017 22:34:25 +0000 (18:34 -0400)] 
appveyor: Build for python 3.5 and 3.6

8 years agoRelease notes and doc updates for 4.5
Ben Darnell [Sun, 26 Mar 2017 21:10:47 +0000 (17:10 -0400)] 
Release notes and doc updates for 4.5

8 years agoMerge pull request #1917 from retinator/master
Ben Darnell [Sun, 26 Mar 2017 18:56:25 +0000 (14:56 -0400)] 
Merge pull request #1917 from retinator/master

Allow custom websocket upgrade response headers

8 years agoMerge pull request #1988 from bdarnell/subprocess-test-detail
Ben Darnell [Sun, 26 Mar 2017 18:55:15 +0000 (14:55 -0400)] 
Merge pull request #1988 from bdarnell/subprocess-test-detail

process_test: Report more details when test_sigchild_signal fails

8 years agoCheck in test script for circular references
Ben Darnell [Sun, 26 Mar 2017 18:43:23 +0000 (14:43 -0400)] 
Check in test script for circular references

From #1936

8 years agoMerge pull request #1936 from homm/break-circrefs
Ben Darnell [Sun, 26 Mar 2017 18:03:50 +0000 (14:03 -0400)] 
Merge pull request #1936 from homm/break-circrefs

Break circular reference to exc_info when exception is thrown

8 years agoMerge pull request #1987 from bdarnell/iostream-orphan-future
Ben Darnell [Sun, 26 Mar 2017 18:03:38 +0000 (14:03 -0400)] 
Merge pull request #1987 from bdarnell/iostream-orphan-future

Fix IOStream.write() to never orphan Future

8 years agoMerge pull request #1927 from minrk/copy-list-in-close
Ben Darnell [Sun, 26 Mar 2017 17:46:36 +0000 (13:46 -0400)] 
Merge pull request #1927 from minrk/copy-list-in-close

copy handler list in IOLoop.close(all_fds=True)

8 years agoMerge branch 'master' into master 1917/head
Ben Darnell [Sun, 26 Mar 2017 17:41:36 +0000 (13:41 -0400)] 
Merge branch 'master' into master

8 years agoprocess_test: Report more details when test_sigchild_signal fails 1988/head
Ben Darnell [Sun, 26 Mar 2017 17:13:27 +0000 (13:13 -0400)] 
process_test: Report more details when test_sigchild_signal fails

This test occasionally fails on pypy on travis-ci.

8 years agoMerge pull request #1986 from bdarnell/yield-none-test
Ben Darnell [Sun, 26 Mar 2017 17:10:24 +0000 (13:10 -0400)] 
Merge pull request #1986 from bdarnell/yield-none-test

gen: Add tests for `yield None`

8 years agoFix IOStream.write() to never orphan Future 1987/head
Antoine Pitrou [Mon, 14 Nov 2016 18:38:25 +0000 (19:38 +0100)] 
Fix IOStream.write() to never orphan Future

The current behaviour is error-prone and makes it difficult to use the
Future-returning variant of IOStream.write().  This change makes sure
the returned Future is triggered as soon as the corresponding write
is issued.

8 years agoMerge pull request #1985 from bdarnell/websocket-convert-yielded
Ben Darnell [Sun, 26 Mar 2017 16:20:14 +0000 (12:20 -0400)] 
Merge pull request #1985 from bdarnell/websocket-convert-yielded

websocket: Avoid calling convert_yielded twice on the same object

8 years agoMerge pull request #1864 from leynos/master
Ben Darnell [Sun, 26 Mar 2017 16:17:12 +0000 (12:17 -0400)] 
Merge pull request #1864 from leynos/master

Allow specificion of trusted downstream proxies for xheaders

8 years agogen: Add tests for `yield None` 1986/head
Ben Darnell [Sun, 26 Mar 2017 15:57:09 +0000 (11:57 -0400)] 
gen: Add tests for `yield None`

See #1716

8 years agoMerge pull request #1716 from seirl/master
Ben Darnell [Sun, 26 Mar 2017 15:46:00 +0000 (11:46 -0400)] 
Merge pull request #1716 from seirl/master

gen: handle None in convert_yielded

8 years agoMerge pull request #1817 from mivade/colorama
Ben Darnell [Sun, 26 Mar 2017 15:17:03 +0000 (11:17 -0400)] 
Merge pull request #1817 from mivade/colorama

Enable color logging on Windows via colorama

8 years agoMerge pull request #1972 from andreasrosdal/master
Ben Darnell [Sun, 26 Mar 2017 15:16:19 +0000 (11:16 -0400)] 
Merge pull request #1972 from andreasrosdal/master

Add compression_level and mem_level to WebSocketHandler.get_compression_options()

8 years agoMerge pull request #1984 from bdarnell/autoreload-no-close
Ben Darnell [Sun, 26 Mar 2017 15:14:40 +0000 (11:14 -0400)] 
Merge pull request #1984 from bdarnell/autoreload-no-close

autoreload: Don't close the IOLoop on reload

8 years agowebsocket: Avoid calling convert_yielded twice on the same object 1985/head
Ben Darnell [Sun, 26 Mar 2017 15:12:37 +0000 (11:12 -0400)] 
websocket: Avoid calling convert_yielded twice on the same object

This is not allowed for native coroutines, although for reasons I
can't put my finger on it only fails intermittently (in the one test
we have that uses this with native coroutines).

8 years agoReplace func directive with double backticks 1817/head
Michael V. DePalatis [Sat, 25 Mar 2017 21:25:13 +0000 (17:25 -0400)] 
Replace func directive with double backticks

8 years agoUse the member variables instead of arguments for self._compression_level and self... 1972/head
Andreas Røsdal [Sat, 25 Mar 2017 19:16:10 +0000 (20:16 +0100)] 
Use the member variables instead of arguments for self._compression_level and self._mem_level.

8 years agoautoreload: Don't close the IOLoop on reload 1984/head
Ben Darnell [Sat, 25 Mar 2017 18:00:26 +0000 (14:00 -0400)] 
autoreload: Don't close the IOLoop on reload

This was a last-ditch effort to close file descriptors that were not
marked as CLOEXEC. However, it was never complete (it didn't touch
file descriptors that were not registered on the IOLoop), and it can't
work with asyncio (which does not allow closing the IOLoop without
stopping it and unwinding the stack first). Since Tornado (and
hopefully all major libraries using the IOLoop) is careful about
setting CLOEXEC when needed, just get rid of the close.

Fixes #1543

8 years agoMerge pull request #1971 from SuminAndrew/remove-with_statement
Ben Darnell [Sat, 25 Mar 2017 16:56:39 +0000 (12:56 -0400)] 
Merge pull request #1971 from SuminAndrew/remove-with_statement

remove redundant with_statement feature

8 years agoMerge pull request #1963 from protonpopsicle/master
Ben Darnell [Sat, 25 Mar 2017 15:53:20 +0000 (11:53 -0400)] 
Merge pull request #1963 from protonpopsicle/master

HTTPServer pass no_keep_alive option to conn params

8 years agoMerge pull request #1966 from JZQT/master
Ben Darnell [Sat, 25 Mar 2017 15:08:52 +0000 (11:08 -0400)] 
Merge pull request #1966 from JZQT/master

Make `tornado.log.LogFormatter` compatible with `logging.config.dictConfig`.