]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
7 years agoFix typo in URLSpec.__init__ docstring 2268/head
Alexey [Fri, 2 Feb 2018 21:19:55 +0000 (00:19 +0300)] 
Fix typo in URLSpec.__init__ docstring

7 years agoMerge pull request #2266 from minrk/yield-null
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

7 years agoallow NullFutures in gen.multi 2266/head
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.

7 years agofix gen.multi with gen.moment
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

7 years agoMerge pull request #2259 from bdarnell/5.0b1
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

7 years agoUpdate release notes and set version to 5.0b1 2259/head
Ben Darnell [Sat, 27 Jan 2018 22:25:34 +0000 (17:25 -0500)] 
Update release notes and set version to 5.0b1

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

7 years agotest: Adjust unittests for tornado_http2 compatibility 2257/head
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.

7 years agoMerge pull request #2252 from bdarnell/ioloop-current
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

7 years agoioloop: Remove IOLoop.initialized() 2252/head
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.

7 years agoioloop: current() and friends delegate to asyncio
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.

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

7 years agotravis: Ignore failures on nightly 2253/head
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.

7 years agoasyncio_test: Fix compatibility with Python 3.7 nightlies
Ben Darnell [Fri, 26 Jan 2018 23:03:58 +0000 (18:03 -0500)] 
asyncio_test: Fix compatibility with Python 3.7 nightlies

7 years agotest: It's no longer possible to use `async def` via cython on py34
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.

7 years agoconcurrent: Fix importability of tornado.wsgi on app engine
Ben Darnell [Mon, 22 Jan 2018 01:12:06 +0000 (20:12 -0500)] 
concurrent: Fix importability of tornado.wsgi on app engine

7 years agolocks: Avoid reusing Future objects in Event
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

7 years agowebsocket: write_message consistently raises WebSocketClosedError
Ben Darnell [Sun, 21 Jan 2018 22:48:55 +0000 (17:48 -0500)] 
websocket: write_message consistently raises WebSocketClosedError

7 years agoRevert "Fix error in coverage runs under Py3 with a C locale"
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

7 years agogen_test: Add test for asyncio.gather
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

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

7 years agoiostream: Add read_into method. 2251/head
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

7 years agoiostream: Use recv_into and friends in read_from_fd
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.

7 years agoMerge pull request #2249 from bdarnell/pipe-iostream
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

7 years agonetutil_test: Disable error tests on TwistedResolver 2249/head
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.

7 years agotest: Count writes to stderr as failures
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).

7 years agoiostream: Use file objects instead of raw descriptors in PipeIOStream
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

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

7 years agoAlter documentation to correctly state behavior (#2114)
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.

7 years agoioloop,asyncio: Be more careful to restore old asyncio loop 2248/head
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.

7 years agoioloop: Make clear_current work if called first in a thread
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

7 years agoIssue #2229: allow GCing of suspended coroutines
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.

7 years agoasyncio: AsyncIOMainLoop.close now closes the underlying loop
Ben Darnell [Sat, 13 Jan 2018 18:45:30 +0000 (13:45 -0500)] 
asyncio: AsyncIOMainLoop.close now closes the underlying loop

7 years agoMerge pull request #2245 from ploxiln/shebang_exec
Ben Darnell [Sat, 13 Jan 2018 18:54:23 +0000 (13:54 -0500)] 
Merge pull request #2245 from ploxiln/shebang_exec

make executable git and shebang consistent on various source files

7 years agodemos/file_uploader: add missing __name__ == __main__ stanza 2245/head
Jehiah Czebotar [Tue, 30 May 2017 13:27:15 +0000 (09:27 -0400)] 
demos/file_uploader: add missing __name__ == __main__ stanza

7 years agomake executable bit and shebang consistent on various source files
Jehiah Czebotar [Tue, 30 May 2017 13:19:27 +0000 (09:19 -0400)] 
make executable bit and shebang consistent on various source files

setup.py is intended to be run with "python setup.py install"

sources in the tornado module which have main functions/clauses
are intended to be run with "python -m tornado.xxx"

various demos and scripts can be run directly

7 years agoMerge pull request #2244 from bdarnell/lint-ci
Ben Darnell [Sun, 7 Jan 2018 00:26:00 +0000 (19:26 -0500)] 
Merge pull request #2244 from bdarnell/lint-ci

build: Enforce flake8-cleanliness in CI

7 years agolint: Check doctest code too 2244/head
Ben Darnell [Sat, 6 Jan 2018 23:49:58 +0000 (18:49 -0500)] 
lint: Check doctest code too

7 years agolint: Un-skip a few rules
Ben Darnell [Sat, 6 Jan 2018 23:32:44 +0000 (18:32 -0500)] 
lint: Un-skip a few rules

7 years agobuild: Enforce flake8-cleanliness in CI
Ben Darnell [Sat, 6 Jan 2018 23:22:41 +0000 (18:22 -0500)] 
build: Enforce flake8-cleanliness in CI

7 years agoMerge pull request #2237 from ploxiln/flake8_trivial
Ben Darnell [Sat, 6 Jan 2018 23:05:23 +0000 (18:05 -0500)] 
Merge pull request #2237 from ploxiln/flake8_trivial

trivial flake8/pyflakes style fixes

7 years agoMerge branch 'branch4.5'
Ben Darnell [Sat, 6 Jan 2018 22:54:02 +0000 (17:54 -0500)] 
Merge branch 'branch4.5'

7 years agoCorrect version and date on 4.5.3 release notes branch4.5 v4.5.3
Ben Darnell [Sat, 6 Jan 2018 17:48:56 +0000 (12:48 -0500)] 
Correct version and date on 4.5.3 release notes

7 years agoMerge pull request #2242 from bdarnell/release-4.5.3
Ben Darnell [Sat, 6 Jan 2018 17:38:22 +0000 (12:38 -0500)] 
Merge pull request #2242 from bdarnell/release-4.5.3

Release 4.5.3

7 years agoRelease notes for 4.5.3 2242/head
Ben Darnell [Fri, 5 Jan 2018 03:44:17 +0000 (22:44 -0500)] 
Release notes for 4.5.3

7 years agoGet tests passing on latest version of pypy3
Ben Darnell [Mon, 28 Aug 2017 02:38:14 +0000 (22:38 -0400)] 
Get tests passing on latest version of pypy3

7 years agoUpdate travis-ci python versions to match master.
Ben Darnell [Fri, 5 Jan 2018 14:59:00 +0000 (09:59 -0500)] 
Update travis-ci python versions to match master.

2.7.8 is no longer available and "pypy3" is old and has
other issues.

7 years agotest: More robust ipv6 detection
Ben Darnell [Sun, 5 Nov 2017 15:38:03 +0000 (10:38 -0500)] 
test: More robust ipv6 detection

There are many ways ipv6 can be disabled or broken (and it just
stopped working on travis-ci), so instead of checking flags like
socket.has_ipv6, attempt to actually bind to an ipv6 address.

Closes #2185

7 years agotesting: Connect to 127.0.0.1 instead of localhost
Ben Darnell [Sun, 5 Nov 2017 15:32:10 +0000 (10:32 -0500)] 
testing: Connect to 127.0.0.1 instead of localhost

The servers used in tests are only listening for ipv4, not ipv6
(to avoid spurious firewall prompts on macos). In what is apparently
a recent macos change, connecting to `localhost` when the ipv6 port
is unbound now incurs a 200ms delay, slowing a full test run down
by a factor of 20.

7 years agofix HTTPInputError reference for improperly terminated chunked request
Pierce Lopez [Sat, 30 Dec 2017 23:34:32 +0000 (18:34 -0500)] 
fix HTTPInputError reference for improperly terminated chunked request

bug introduced in #2225

7 years agohttp: read final crlf of chunked requests
Pierce Lopez [Tue, 26 Dec 2017 03:11:26 +0000 (22:11 -0500)] 
http: read final crlf of chunked requests

otherwise a subsequent request on the same connection
will fail to be parsed

thanks to @eeelin for the bug report

7 years agoDon't keep any reference to memoryviews
Antoine Pitrou [Sat, 21 Oct 2017 20:05:19 +0000 (22:05 +0200)] 
Don't keep any reference to memoryviews

See https://github.com/tornadoweb/tornado/pull/2008 for reasons
why this might be necessary.

7 years agoRelease memoryviews explicitly
Antoine Pitrou [Sat, 21 Oct 2017 18:47:29 +0000 (20:47 +0200)] 
Release memoryviews explicitly

See https://github.com/tornadoweb/tornado/pull/2008 for reasons why this
might be necessary.

7 years agofix websocket handshake failure causes an exception
Jungkook Park [Thu, 21 Sep 2017 17:14:51 +0000 (02:14 +0900)] 
fix websocket handshake failure causes an exception

7 years agocast curl debug messages to str
Min RK [Tue, 11 Jul 2017 10:07:34 +0000 (12:07 +0200)] 
cast curl debug messages to str

since they come in as bytes on Python 3

7 years agoHandle 1xx's along 204/304's
Sebastien Boving [Wed, 5 Jul 2017 17:04:33 +0000 (10:04 -0700)] 
Handle 1xx's along 204/304's

7 years agoDo not send/expect Content-Length on 1xx
Sebastien Boving [Tue, 27 Jun 2017 16:35:55 +0000 (09:35 -0700)] 
Do not send/expect Content-Length on 1xx

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

Fixes #2020

7 years agostyle fix: wrap or ignore long lines in remaining tests 2237/head
Pierce Lopez [Wed, 3 Jan 2018 05:20:33 +0000 (00:20 -0500)] 
style fix: wrap or ignore long lines in remaining tests

7 years agostyle fix: wrap or ignore long lines in some tests
Pierce Lopez [Mon, 1 Jan 2018 22:54:33 +0000 (17:54 -0500)] 
style fix: wrap or ignore long lines in some tests

template_test: rewrite long lambda to avoid long line

7 years agostyle fix: wrap or ignore long lines in tornado lib sources
Pierce Lopez [Mon, 1 Jan 2018 22:46:05 +0000 (17:46 -0500)] 
style fix: wrap or ignore long lines in tornado lib sources

excluding tests

7 years agostyle fix: misc indent flake warnings
Pierce Lopez [Mon, 1 Jan 2018 20:27:34 +0000 (15:27 -0500)] 
style fix: misc indent flake warnings

E126 continuation line over-indented for hanging indent
E128 continuation line under-indented for visual indent
E129 visually indented line with same indent as next logical line

7 years agofix python2.7 / python3 incompatibilities
Pierce Lopez [Mon, 1 Jan 2018 20:01:22 +0000 (15:01 -0500)] 
fix python2.7 / python3 incompatibilities

convert remaining uses of python2 print statement to print function
add "xrange = range" for python3 where needed
add "ResourceWarning = None" for python2 where needed
a bit of long/unicode type aliasing

such issues only remained in tests/demos

7 years agostyle fix: 2 blank lines around top-level class and function defs
Pierce Lopez [Mon, 1 Jan 2018 19:43:18 +0000 (14:43 -0500)] 
style fix: 2 blank lines around top-level class and function defs

flake8 codes E302 and E305

7 years agofix "unused variable" flake warnings
Pierce Lopez [Mon, 1 Jan 2018 19:22:58 +0000 (14:22 -0500)] 
fix "unused variable" flake warnings

in iostream_test, and
an exception var in tornado.routing that only python2 pyflakes caught

7 years agostyle fix: multiple statements on one line
Pierce Lopez [Mon, 1 Jan 2018 19:10:18 +0000 (14:10 -0500)] 
style fix: multiple statements on one line

flake8 code E701

7 years agostyle fix: missing whitespace around operators
Pierce Lopez [Mon, 1 Jan 2018 18:43:55 +0000 (13:43 -0500)] 
style fix: missing whitespace around operators

flake8 codes E225 and E226

7 years agostyle fix: 3 blank lines is too many, 0 is too few
Pierce Lopez [Sun, 31 Dec 2017 18:54:07 +0000 (13:54 -0500)] 
style fix: 3 blank lines is too many, 0 is too few

around functions and classes

E306 expected 1 blank line before a nested definition, found 0
E303 too many blank lines (3)

7 years agostyle fix: closing bracket indent
Pierce Lopez [Sun, 31 Dec 2017 18:44:42 +0000 (13:44 -0500)] 
style fix: closing bracket indent

E123 closing bracket does not match indentation of opening bracket's line

7 years agostyle fix: remove trailing whitespace
Pierce Lopez [Sun, 31 Dec 2017 18:42:29 +0000 (13:42 -0500)] 
style fix: remove trailing whitespace

7 years agofix "imported but unused" flake warnings
Pierce Lopez [Sun, 31 Dec 2017 18:36:58 +0000 (13:36 -0500)] 
fix "imported but unused" flake warnings

7 years agoadd flake8 config
Pierce Lopez [Mon, 1 Jan 2018 18:42:52 +0000 (13:42 -0500)] 
add flake8 config

ignore some style checks and subdirectories

7 years agoMerge pull request #2238 from bdarnell/misc
Ben Darnell [Mon, 1 Jan 2018 01:43:27 +0000 (20:43 -0500)] 
Merge pull request #2238 from bdarnell/misc

asyncio,options,httpclient: Various small updates

7 years agoMerge pull request #2135 from FlorianLudwig/master
Ben Darnell [Mon, 1 Jan 2018 01:29:09 +0000 (20:29 -0500)] 
Merge pull request #2135 from FlorianLudwig/master

update google oauth URLs

7 years agogen_test: Mark a timing-sensitive test as skipped on travis 2238/head
Ben Darnell [Sun, 31 Dec 2017 23:30:40 +0000 (18:30 -0500)] 
gen_test: Mark a timing-sensitive test as skipped on travis

7 years agoasyncio: Don't raise "IOLoop is closing" in add_callback
Ben Darnell [Sun, 31 Dec 2017 22:05:05 +0000 (17:05 -0500)] 
asyncio: Don't raise "IOLoop is closing" in add_callback

This mirrors a previous change to PollIOLoop. Fix a test that had
rotted and become meaningless.

Fixes #2191

7 years agooptions: Rewrite docs
Ben Darnell [Sun, 31 Dec 2017 21:40:32 +0000 (16:40 -0500)] 
options: Rewrite docs

Clarify the overall philosophy of the module and divide up docs
between define() and the parse_* functions.

Adds a note about doubled log messages.

Fixes #1866

7 years agoasyncio: Add an event loop policy to allow creation on any thread
Ben Darnell [Sun, 31 Dec 2017 19:56:56 +0000 (14:56 -0500)] 
asyncio: Add an event loop policy to allow creation on any thread

Fixes #2183

7 years agohttpclient: Add proxy options to CLI
Ben Darnell [Sun, 31 Dec 2017 15:48:06 +0000 (10:48 -0500)] 
httpclient: Add proxy options to CLI

For testing #2145

7 years agoMerge pull request #2235 from ploxiln/exc_info_var
Ben Darnell [Sun, 31 Dec 2017 15:02:08 +0000 (10:02 -0500)] 
Merge pull request #2235 from ploxiln/exc_info_var

fix iostream exc_info using missing Exception var

7 years agoMerge pull request #2236 from ploxiln/fix_chunked_exception
Ben Darnell [Sun, 31 Dec 2017 15:00:44 +0000 (10:00 -0500)] 
Merge pull request #2236 from ploxiln/fix_chunked_exception

fix HTTPInputError reference for improperly terminated chunked request

7 years agofix HTTPInputError reference for improperly terminated chunked request 2236/head
Pierce Lopez [Sat, 30 Dec 2017 23:34:32 +0000 (18:34 -0500)] 
fix HTTPInputError reference for improperly terminated chunked request

bug introduced in #2225

7 years agofix iostream exc_info using missing Exception var 2235/head
Pierce Lopez [Sat, 30 Dec 2017 23:22:38 +0000 (18:22 -0500)] 
fix iostream exc_info using missing Exception var

bug introduced in #2028
this fix very similar to #2155

7 years agoMerge pull request #2225 from ploxiln/fix_chunked_requests
Ben Darnell [Sat, 30 Dec 2017 19:48:26 +0000 (14:48 -0500)] 
Merge pull request #2225 from ploxiln/fix_chunked_requests

http: read final crlf of chunked requests

7 years agoMerge pull request #2228 from bdarnell/5.0a1
Ben Darnell [Wed, 27 Dec 2017 18:45:52 +0000 (13:45 -0500)] 
Merge pull request #2228 from bdarnell/5.0a1

setup: Set version number to 5.0a1

7 years agosetup: Set version number to 5.0a1 2228/head
Ben Darnell [Wed, 27 Dec 2017 18:06:11 +0000 (13:06 -0500)] 
setup: Set version number to 5.0a1

7 years agosetup.py: Add python_requires
Ben Darnell [Wed, 27 Dec 2017 18:05:22 +0000 (13:05 -0500)] 
setup.py: Add python_requires

7 years agonetutil: Update docs for OverrideResolver and release notes
Ben Darnell [Wed, 27 Dec 2017 17:51:18 +0000 (12:51 -0500)] 
netutil: Update docs for OverrideResolver and release notes

7 years agoMerge pull request #2227 from mivade/options-docs
Ben Darnell [Wed, 27 Dec 2017 17:31:26 +0000 (12:31 -0500)] 
Merge pull request #2227 from mivade/options-docs

Document that options can be booleans

7 years agoDocument that options can be booleans 2227/head
Michael V. DePalatis [Wed, 27 Dec 2017 02:40:43 +0000 (20:40 -0600)] 
Document that options can be booleans

Addresses #2222

7 years agoAdd family argument to OverrideResolver->resolve method (#2201)
Boris [Tue, 26 Dec 2017 23:05:28 +0000 (02:05 +0300)] 
Add family argument to OverrideResolver->resolve method (#2201)

7 years agohttp: read final crlf of chunked requests 2225/head
Pierce Lopez [Tue, 26 Dec 2017 03:11:26 +0000 (22:11 -0500)] 
http: read final crlf of chunked requests

otherwise a subsequent request on the same connection
will fail to be parsed

thanks to @eeelin for the bug report

7 years agoMerge pull request #2224 from bdarnell/default-resolver
Ben Darnell [Sat, 23 Dec 2017 03:22:49 +0000 (22:22 -0500)] 
Merge pull request #2224 from bdarnell/default-resolver

netutil: Use a threaded resolver by default

7 years agoasyncio: Delegate executor methods to asyncio loop 2224/head
Ben Darnell [Sat, 23 Dec 2017 02:28:33 +0000 (21:28 -0500)] 
asyncio: Delegate executor methods to asyncio loop

Avoid creating a second default thread pool to be managed.

7 years agonetutil: Use a threaded resolver by default
Ben Darnell [Sat, 23 Dec 2017 02:14:15 +0000 (21:14 -0500)] 
netutil: Use a threaded resolver by default

Uses IOLoop.run_in_executor.
concurrent.futures is now required on Python 2.

7 years agoMerge pull request #2220 from bdarnell/fix-multiprocess
Ben Darnell [Sat, 23 Dec 2017 01:22:24 +0000 (20:22 -0500)] 
Merge pull request #2220 from bdarnell/fix-multiprocess

tcpserver: Fix multiprocess modes

7 years agotcpserver: Fix multiprocess modes 2220/head
Ben Darnell [Tue, 19 Dec 2017 03:56:40 +0000 (22:56 -0500)] 
tcpserver: Fix multiprocess modes

Two recent changes broke Tornado's multiprocess modes by initializing
the event loop before the fork in typical patterns.
- The removal of `io_loop` arguments moved a call to
  IOLoop.current() earlier in TCPServer's constructor.
- The change to `asyncio.Future` initialized the asyncio event loop at
  import time.

Move the call in TCPServer earlier (and audit the rest of that change
to make sure this didn't happen anywhere else) and replace
`gen.moment` and `gen._null_future` with dummy objects that do not
involve the asyncio event loop.

7 years agoMerge pull request #2219 from bdarnell/release-notes
Ben Darnell [Mon, 18 Dec 2017 03:35:10 +0000 (22:35 -0500)] 
Merge pull request #2219 from bdarnell/release-notes

docs: Start release notes for 5.0.

7 years agoMerge branch 'branch4.5' into release-notes 2219/head
Ben Darnell [Mon, 18 Dec 2017 03:08:18 +0000 (22:08 -0500)] 
Merge branch 'branch4.5' into release-notes

7 years agodocs: Start release notes for 5.0.
Ben Darnell [Mon, 18 Dec 2017 02:47:58 +0000 (21:47 -0500)] 
docs: Start release notes for 5.0.

Update versionadded/versionchanged tags. Misc other doc updates