]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
6 years agoRemove twisted version comment in module docstring 2614/head
Michael V. DePalatis [Mon, 4 Mar 2019 22:25:11 +0000 (15:25 -0700)] 
Remove twisted version comment in module docstring

Let the documentation in `TwistedResolver` specify the minimum
version.

6 years agoMerge pull request #2612 from bdarnell/download-script
Ben Darnell [Sun, 3 Mar 2019 18:45:57 +0000 (13:45 -0500)] 
Merge pull request #2612 from bdarnell/download-script

Add script to download wheels from appveyor

6 years agoAdd script to download wheels from appveyor 2612/head
Ben Darnell [Sun, 3 Mar 2019 18:37:39 +0000 (13:37 -0500)] 
Add script to download wheels from appveyor

6 years agoMerge pull request #2606 from ploxiln/travis_update_xenial
Ben Darnell [Sun, 3 Mar 2019 16:48:26 +0000 (11:48 -0500)] 
Merge pull request #2606 from ploxiln/travis_update_xenial

travis-ci tests: always use dist xenial

6 years agoMerge pull request #2609 from fchapoton/patch-1
Ben Darnell [Sun, 3 Mar 2019 16:07:41 +0000 (11:07 -0500)] 
Merge pull request #2609 from fchapoton/patch-1

remove duplicate import of gettext

6 years agoremove duplicate import of gettext 2609/head
Frédéric Chapoton [Sun, 3 Mar 2019 10:54:48 +0000 (11:54 +0100)] 
remove duplicate import of gettext

6 years agotravis-ci tests: always use dist xenial 2606/head
Pierce Lopez [Fri, 1 Mar 2019 20:22:14 +0000 (15:22 -0500)] 
travis-ci tests: always use dist xenial

Travis-CI Trusty Container-based environment was available
between July, 2017 and December, 2018.
https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments

6 years agoMerge pull request #2605 from bdarnell/python-352
Ben Darnell [Fri, 1 Mar 2019 21:17:52 +0000 (16:17 -0500)] 
Merge pull request #2605 from bdarnell/python-352

Fix importability on python 3.5.2

6 years agoFix importability on python 3.5.2 2605/head
Ben Darnell [Fri, 1 Mar 2019 20:03:31 +0000 (15:03 -0500)] 
Fix importability on python 3.5.2

The "provisional" typing module in 3.5.2 is kind of broken/incomplete
so we need to use more forward references to avoid confusing it. The
significance of this version in particular is that it was the one
included in ubuntu 16.04.

Fixes #2604

6 years agoMerge pull request #2603 from bdarnell/version-bump
Ben Darnell [Fri, 1 Mar 2019 16:04:38 +0000 (11:04 -0500)] 
Merge pull request #2603 from bdarnell/version-bump

Bump master branch to 6.1.dev1

6 years agoBump master branch to 6.1.dev1 2603/head
Ben Darnell [Fri, 1 Mar 2019 15:40:25 +0000 (10:40 -0500)] 
Bump master branch to 6.1.dev1

6 years agoMerge pull request #2602 from bdarnell/version-6.0 v6.0.0
Ben Darnell [Fri, 1 Mar 2019 15:11:52 +0000 (10:11 -0500)] 
Merge pull request #2602 from bdarnell/version-6.0

Set version to 6.0

6 years agoSet version to 6.0 2602/head
Ben Darnell [Fri, 1 Mar 2019 14:55:59 +0000 (09:55 -0500)] 
Set version to 6.0

6 years agoMerge pull request #2588 from bdarnell/6.0b1 v6.0.0b1
Ben Darnell [Sun, 10 Feb 2019 23:08:24 +0000 (18:08 -0500)] 
Merge pull request #2588 from bdarnell/6.0b1

Set version to 6.0b1

6 years agoSet version to 6.0b1 2588/head
Ben Darnell [Sun, 10 Feb 2019 22:30:08 +0000 (17:30 -0500)] 
Set version to 6.0b1

6 years agoMerge pull request #2587 from bdarnell/opt
Ben Darnell [Sat, 9 Feb 2019 21:57:04 +0000 (16:57 -0500)] 
Merge pull request #2587 from bdarnell/opt

ioloop: Micro-optimize IOLoop.add_future

6 years agoMerge pull request #2586 from sadielbartholomew/minor-docs-improvements
Ben Darnell [Sat, 9 Feb 2019 18:11:54 +0000 (13:11 -0500)] 
Merge pull request #2586 from sadielbartholomew/minor-docs-improvements

docs: assorted minor e.g. formatting improvements

6 years agoMerge pull request #2580 from bdarnell/remove-log
Ben Darnell [Sat, 9 Feb 2019 17:03:39 +0000 (12:03 -0500)] 
Merge pull request #2580 from bdarnell/remove-log

httputil: Remove a noisy log line

6 years agoMerge pull request #2581 from bdarnell/websocket-open-catch
Ben Darnell [Sat, 9 Feb 2019 17:02:32 +0000 (12:02 -0500)] 
Merge pull request #2581 from bdarnell/websocket-open-catch

websocket: Catch errors in async open() correctly

6 years agoMinor formatting & grammatical etc. edits to docs 2586/head
Sadie Bartholomew [Sat, 9 Feb 2019 00:35:55 +0000 (00:35 +0000)] 
Minor formatting & grammatical etc. edits to docs

6 years agoioloop: Micro-optimize IOLoop.add_future 2587/head
Ben Darnell [Sun, 3 Feb 2019 23:01:53 +0000 (18:01 -0500)] 
ioloop: Micro-optimize IOLoop.add_future

Asyncio Futures always schedule their callbacks on a future iteration
of the IOLoop, so routing the callbacks through IOLoop.add_callback
again was redundant and causing unnecessary delays in callback
execution.

6 years agowebsocket: Catch errors in async open() correctly 2581/head
Ben Darnell [Sat, 2 Feb 2019 18:44:56 +0000 (13:44 -0500)] 
websocket: Catch errors in async open() correctly

Previously if open() was a coroutine and raised an error, the
connection would be left open.

Fixes #2570

6 years agohttputil: Downgrade a noisy log line 2580/head
Ben Darnell [Sat, 2 Feb 2019 17:41:03 +0000 (12:41 -0500)] 
httputil: Downgrade a noisy log line

Only complain about unsupported content encodings if it's a
content-type we'd otherwise try to parse.

Fixes #2578

6 years agoMerge pull request #2566 from BoboTiG/fix-resource-leaks
Ben Darnell [Mon, 21 Jan 2019 12:46:14 +0000 (07:46 -0500)] 
Merge pull request #2566 from BoboTiG/fix-resource-leaks

Fix ResourceWarning: unclosed file

6 years agoFix ResourceWarning: unclosed file 2566/head
Mickaël Schoentgen [Sat, 5 Jan 2019 21:15:01 +0000 (22:15 +0100)] 
Fix ResourceWarning: unclosed file

Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
6 years agoMerge pull request #2565 from bdarnell/docs-6.0a1
Ben Darnell [Wed, 2 Jan 2019 03:51:21 +0000 (22:51 -0500)] 
Merge pull request #2565 from bdarnell/docs-6.0a1

Release notes for 6.0a1

6 years agoinit: set version to 6.0a1 2565/head
Ben Darnell [Wed, 2 Jan 2019 03:44:33 +0000 (22:44 -0500)] 
init: set version to 6.0a1

6 years agosetup: Don't repeat version number in setup.py
Ben Darnell [Wed, 2 Jan 2019 03:43:10 +0000 (22:43 -0500)] 
setup: Don't repeat version number in setup.py

6 years agodocs: More 6.0 release notes
Ben Darnell [Wed, 2 Jan 2019 03:33:36 +0000 (22:33 -0500)] 
docs: More 6.0 release notes

6 years agoFirst part of 6.0 release notes: note all deprecated removals
Ben Darnell [Tue, 1 Jan 2019 21:16:27 +0000 (16:16 -0500)] 
First part of 6.0 release notes: note all deprecated removals

6 years agodocs: Update homepage for 6.0
Ben Darnell [Tue, 1 Jan 2019 21:07:24 +0000 (16:07 -0500)] 
docs: Update homepage for 6.0

6 years agoMerge pull request #2440 from bdarnell/validate-redirect
Ben Darnell [Tue, 1 Jan 2019 18:02:51 +0000 (13:02 -0500)] 
Merge pull request #2440 from bdarnell/validate-redirect

httpclient: Validate redirect location header and method

6 years agosimple_httpclient: Only convert POST requests to GETs on redirect 2440/head
Ben Darnell [Tue, 1 Jan 2019 17:55:58 +0000 (12:55 -0500)] 
simple_httpclient: Only convert POST requests to GETs on redirect

Convert POST to GET on 301 in addition to 302 and 303.

6 years agohttp1connection: Fix a bug with redirects and chunked requests
Ben Darnell [Tue, 1 Jan 2019 17:50:07 +0000 (12:50 -0500)] 
http1connection: Fix a bug with redirects and chunked requests

After a redirect, the chunked-encoding header is already set and would
not be detected correctly. This affects empty bodies with
allow_nonstandard_methods and any use of body_producer.

6 years agoRevert "Revert "_HTTPConnection: check location on _should_follow_redirect() and...
Ben Darnell [Wed, 11 Jul 2018 02:32:57 +0000 (22:32 -0400)] 
Revert "Revert "_HTTPConnection: check location on _should_follow_redirect() and retain safe request when following redirects (#2409)""

This reverts commit dda77f2ca3365bd031a0c56dd19c8ed781a0695a.

6 years agoMerge pull request #2564 from bdarnell/queue-warning
Ben Darnell [Tue, 1 Jan 2019 15:38:12 +0000 (10:38 -0500)] 
Merge pull request #2564 from bdarnell/queue-warning

queues: Add a note to Queue.get about difference from stdlib

6 years agoqueues: Add a note to Queue.get about difference from stdlib 2564/head
Ben Darnell [Tue, 1 Jan 2019 15:29:22 +0000 (10:29 -0500)] 
queues: Add a note to Queue.get about difference from stdlib

Tornado's interpretation of the timeout argument differs from the
stdlib's queue.

Fixes #2370

6 years agoMerge pull request #2563 from bdarnell/docs-update
Ben Darnell [Sun, 30 Dec 2018 20:27:03 +0000 (15:27 -0500)] 
Merge pull request #2563 from bdarnell/docs-update

docs: Various updates

6 years agoconcurrent: Update docs 2563/head
Ben Darnell [Sun, 30 Dec 2018 19:55:14 +0000 (14:55 -0500)] 
concurrent: Update docs

6 years agoauth: Update docs
Ben Darnell [Sun, 30 Dec 2018 19:49:15 +0000 (14:49 -0500)] 
auth: Update docs

6 years agoqueues: Update docs
Ben Darnell [Sun, 30 Dec 2018 19:43:04 +0000 (14:43 -0500)] 
queues: Update docs

6 years agolocks: Update docs
Ben Darnell [Sun, 30 Dec 2018 19:03:06 +0000 (14:03 -0500)] 
locks: Update docs

6 years agogen: Update docs
Ben Darnell [Sun, 30 Dec 2018 18:35:34 +0000 (13:35 -0500)] 
gen: Update docs

6 years agoiostream: Update docs
Ben Darnell [Sun, 30 Dec 2018 18:16:50 +0000 (13:16 -0500)] 
iostream: Update docs

6 years agoioloop: Update docs
Ben Darnell [Sun, 30 Dec 2018 18:12:51 +0000 (13:12 -0500)] 
ioloop: Update docs

6 years agohttpclient: Update docs
Ben Darnell [Sun, 30 Dec 2018 17:42:42 +0000 (12:42 -0500)] 
httpclient: Update docs

6 years agohttpserver: Update docs
Ben Darnell [Sun, 30 Dec 2018 17:35:20 +0000 (12:35 -0500)] 
httpserver: Update docs

6 years agodocs: Add sphinxcontrib-asyncio
Ben Darnell [Sun, 30 Dec 2018 17:34:53 +0000 (12:34 -0500)] 
docs: Add sphinxcontrib-asyncio

This adds a "coroutine" marker to native coroutines

6 years agowebsocket: Change some Future type annotations to Awaitables
Ben Darnell [Sun, 30 Dec 2018 17:10:20 +0000 (12:10 -0500)] 
websocket: Change some Future type annotations to Awaitables

This conforms with usage elsewhere, that methods returning None use
Futures (self-starting in case the result is not awaited) and others
use Awaitable (reserving the option to use more efficient native
coroutines).

6 years agoescape: Update docs
Ben Darnell [Sun, 30 Dec 2018 17:05:49 +0000 (12:05 -0500)] 
escape: Update docs

Replace to_basestring with an alias for to_unicode, since the two are
equivalent on py3.

6 years agoweb: Update docs
Ben Darnell [Sun, 30 Dec 2018 16:48:43 +0000 (11:48 -0500)] 
web: Update docs

6 years agoMerge pull request #2562 from bdarnell/docs-update
Ben Darnell [Sun, 30 Dec 2018 01:08:08 +0000 (20:08 -0500)] 
Merge pull request #2562 from bdarnell/docs-update

docs: Minor updates

6 years agodocs: Remove year from copyright variable 2562/head
Ben Darnell [Sun, 30 Dec 2018 00:59:20 +0000 (19:59 -0500)] 
docs: Remove year from copyright variable

Computing this dynamically is wrong and it doesn't seem worth the
trouble to maintain manually.

Closes #2258
Closes #2259

6 years agodocs: Use python 3.7 via conda for readthedocs builds
Ben Darnell [Sun, 30 Dec 2018 00:57:39 +0000 (19:57 -0500)] 
docs: Use python 3.7 via conda for readthedocs builds

The typing module in python 3.5 has problems with some type
annotations so we need to build with 3.7. RTD doesn't yet support py37
natively but we can get it with conda following an example at
https://github.com/rtfd/readthedocs-docker-images/pull/73

6 years agodocs: Blacken conf.py
Ben Darnell [Sun, 30 Dec 2018 00:55:27 +0000 (19:55 -0500)] 
docs: Blacken conf.py

6 years agodocs: Upgrade sphinx to 1.8
Ben Darnell [Sun, 30 Dec 2018 00:54:51 +0000 (19:54 -0500)] 
docs: Upgrade sphinx to 1.8

The bug that kept us on 1.7 was fixed in 1.8.2.

6 years agoMerge pull request #2561 from bdarnell/contextvars-test
Ben Darnell [Sat, 29 Dec 2018 19:23:20 +0000 (14:23 -0500)] 
Merge pull request #2561 from bdarnell/contextvars-test

gen_test: Verify that contextvars work as expected

6 years agogen_test: Verify that contextvars work as expected 2561/head
Ben Darnell [Sat, 29 Dec 2018 19:06:44 +0000 (14:06 -0500)] 
gen_test: Verify that contextvars work as expected

6 years agoMerge pull request #2560 from bdarnell/websocket-cleanup
Ben Darnell [Sat, 29 Dec 2018 03:28:45 +0000 (22:28 -0500)] 
Merge pull request #2560 from bdarnell/websocket-cleanup

websocket: Convert to native coroutines, refactor

6 years agowebsocket: Convert legacy coroutines to native 2560/head
Ben Darnell [Mon, 24 Dec 2018 18:03:18 +0000 (13:03 -0500)] 
websocket: Convert legacy coroutines to native

6 years agowebsocket: Make WSH.get a coroutine
Ben Darnell [Mon, 24 Dec 2018 16:57:33 +0000 (11:57 -0500)] 
websocket: Make WSH.get a coroutine

This is necessary to convert accept_connection to native coroutines -
the handshake no longer completes within a single IOLoop iteration
with this change due to coroutine scheduling.

This has the side effect of keeping the HTTP1Connection open for the
lifetime of the websocket connection. That's not great for memory, but
might help streamline close handling. Either way, it'll be refactored
in a future change.

6 years agowebsocket: Narrow the websocket handler interface
Ben Darnell [Sun, 21 Oct 2018 19:13:56 +0000 (15:13 -0400)] 
websocket: Narrow the websocket handler interface

Pass close arguments via a new method instead of setting attributes.
Extract a "params" struct.

6 years agowebsocket: Merge close detection into receive_frame_loop
Ben Darnell [Sun, 21 Oct 2018 18:26:43 +0000 (14:26 -0400)] 
websocket: Merge close detection into receive_frame_loop

This avoids races between message handling and the close callback.

6 years agotesting: Cancel all pending coroutines in tearDown
Ben Darnell [Mon, 10 Dec 2018 03:16:33 +0000 (22:16 -0500)] 
testing: Cancel all pending coroutines in tearDown

It's difficult to synchronize test shutdown with the exits of all
coroutines, so explicitly cancel all native coroutines (which are
spammy when allowed to be GC'd).

Suppress logging of CancelledErrors in IOLoop.

6 years agoRelease app references in AsyncHTTPTestCase tearDown method (#2554)
Tim Jensen [Sat, 15 Dec 2018 22:24:03 +0000 (16:24 -0600)] 
Release app references in AsyncHTTPTestCase tearDown method (#2554)

Releasing the application and HTTP server references in tearDown helps
encourage the GC to clean up resources passed through the application
settings.

6 years agoMerge pull request #2549 from garenchan/bugfix-#2448
Ben Darnell [Sat, 15 Dec 2018 15:41:20 +0000 (10:41 -0500)] 
Merge pull request #2549 from garenchan/bugfix-#2448

web: Use 'future_add_done_callback' to add callback.

6 years agoUse 'future_add_done_callback' to add callback. 2549/head
garenchan [Mon, 10 Dec 2018 11:16:38 +0000 (19:16 +0800)] 
Use 'future_add_done_callback' to add callback.
The PR #2449 was incomplete, it omited consideration of another
branch of the 'flush' method. In short, the future returned by
'RequestHandler.finish()' may also be the return value of
'HTTP1Connection.write()'. So we should make the same change to
'HTTP1Connection.write()'.

Fix #2448.

6 years agowebsocket_test: Remove most manual closes
Ben Darnell [Mon, 10 Dec 2018 02:14:50 +0000 (21:14 -0500)] 
websocket_test: Remove most manual closes

At one time this was necessary to prevent spurious warnings at
shutdown, but not any more (and I intend to address warnings like this
with a more general solution).

6 years agoMerge pull request #2545 from bdarnell/future-exception-cancel
Ben Darnell [Mon, 3 Dec 2018 00:44:04 +0000 (19:44 -0500)] 
Merge pull request #2545 from bdarnell/future-exception-cancel

concurrent: Add future_set_exception_unless_cancelled

6 years agoMerge pull request #2544 from bdarnell/httpclient-del
Ben Darnell [Mon, 3 Dec 2018 00:43:52 +0000 (19:43 -0500)] 
Merge pull request #2544 from bdarnell/httpclient-del

httpclient: Fix warning logged by sync HTTPClient destructor

6 years agohttpclient: Fix warning logged by sync HTTPClient destructor 2544/head
Ben Darnell [Sun, 2 Dec 2018 17:33:07 +0000 (12:33 -0500)] 
httpclient: Fix warning logged by sync HTTPClient destructor

If an HTTPClient is closed from its destructor instead of an explicit
close() call, it sometimes logs an "inconsistent AsyncHTTPClient
cache" error because the weakrefs appear to get cleaned up in an
unexpected order. Relax the checks in AsyncHTTPClient.close to allow
for a missing value in the instance cache.

Fixes #2539

6 years agoconcurrent: Remove some pre-6.0 compatibility code 2545/head
Ben Darnell [Sun, 2 Dec 2018 18:19:57 +0000 (13:19 -0500)] 
concurrent: Remove some pre-6.0 compatibility code

6 years agoconcurrent: Add future_set_exception_unless_cancelled
Ben Darnell [Sun, 2 Dec 2018 18:11:37 +0000 (13:11 -0500)] 
concurrent: Add future_set_exception_unless_cancelled

Tornado's limited support for cancellation means that errors after a
Future is cancelled could get raised (and probably logged) as
InvalidStateErrors.

This new function effectively changes the behavior to log the real
exception instead of the InvalidStateError. We log them instead of
ignoring them because it's generally not a good idea to let errors
pass silently even if they're after the point that no one is listening
for them (this is consistent with the way gen.multi() handles multiple
errors, for example).

Fixes #2540

6 years agoMerge pull request #2524 from kinow/define-xsrf-expires-day
Ben Darnell [Wed, 21 Nov 2018 15:07:13 +0000 (10:07 -0500)] 
Merge pull request #2524 from kinow/define-xsrf-expires-day

Define XSRF cookie expires_day via settings

6 years agoUse kwargs for expires_days, and remove default of 30 days 2524/head
Bruno P. Kinoshita [Wed, 31 Oct 2018 09:38:45 +0000 (22:38 +1300)] 
Use kwargs for expires_days, and remove default of 30 days

6 years agoMerge pull request #2528 from zejn/master
Ben Darnell [Fri, 2 Nov 2018 20:18:39 +0000 (16:18 -0400)] 
Merge pull request #2528 from zejn/master

Add support for source IP address to SimpleAsyncHTTPClient.

6 years agoMerge pull request #2512 from dhiltonp/master
Ben Darnell [Fri, 2 Nov 2018 19:42:39 +0000 (15:42 -0400)] 
Merge pull request #2512 from dhiltonp/master

allow configurable max_restarts in TCPServer.start

6 years agoFix #2521: Serve full file when range start is negative and exceeds the total length...
Garen Chan [Fri, 2 Nov 2018 19:40:33 +0000 (03:40 +0800)] 
Fix #2521: Serve full file when range start is negative and exceeds the total length (#2522)

* Serve full file while range negative past start.

Fix issue #2521.

* Return 416 while range end less than start.

When range end less than start, the content length will be negative and
HTTPOutputError will be raised.

6 years agoMerge pull request #2530 from bdarnell/requirements
Ben Darnell [Fri, 2 Nov 2018 17:26:34 +0000 (13:26 -0400)] 
Merge pull request #2530 from bdarnell/requirements

maint: Update requirements

6 years agoMerge pull request #2529 from bdarnell/blacken-demos
Ben Darnell [Fri, 2 Nov 2018 17:26:03 +0000 (13:26 -0400)] 
Merge pull request #2529 from bdarnell/blacken-demos

demos: Format all the demos with `black`

6 years agomaint: Update requirements 2530/head
Ben Darnell [Fri, 2 Nov 2018 17:09:09 +0000 (13:09 -0400)] 
maint: Update requirements

Pick up a security fix in `requests`, and add mypy and black to the list.

6 years agohttp1connection: Fix some weird formatting 2529/head
Ben Darnell [Fri, 2 Nov 2018 16:57:09 +0000 (12:57 -0400)] 
http1connection: Fix some weird formatting

`black` refused to move the operator across the comment, leaving it
stranded on a line by its own. The most recent version of pycodestyle
complains about this.

6 years agodemos: Format all the demos with `black`
Ben Darnell [Fri, 2 Nov 2018 16:56:28 +0000 (12:56 -0400)] 
demos: Format all the demos with `black`

6 years agoAdd support for source IP address to SimpleAsyncHTTPClient. 2528/head
Gasper Zejn [Fri, 2 Nov 2018 12:38:22 +0000 (13:38 +0100)] 
Add support for source IP address to SimpleAsyncHTTPClient.

Extend support for HTTPRequest's network_interface parameter to
SimpleAsyncHTTPClient. This enables binding to specific local IP and
enables connecting to WebSockets via a specific IP address.

To use it you create a HTTPRequest with network_interface parameter set
to local IP address to be used as source IP. websocket_connect then
passes the request to SimpleAsyncHTTPClient.

Note that even though the parameter name is `network_interface`, the
CurlAsyncHTTPClient may support (OS dependant) passing in interface
name, resolvable hostname or IP address, while this patch only adds
IP address support to SimpleAsyncHTTPClient.

6 years agoallow configurable max_restarts in TCPServer.start 2512/head
David Hilton [Tue, 30 Oct 2018 22:37:17 +0000 (16:37 -0600)] 
allow configurable max_restarts in TCPServer.start

6 years agoMerge pull request #2520 from bdarnell/native-coro
Ben Darnell [Sun, 21 Oct 2018 02:01:49 +0000 (22:01 -0400)] 
Merge pull request #2520 from bdarnell/native-coro

*: Convert most non-test coroutines to native

6 years ago*: Convert most non-test coroutines to native 2520/head
Ben Darnell [Sun, 14 Oct 2018 19:28:49 +0000 (15:28 -0400)] 
*: Convert most non-test coroutines to native

The websocket module is an exception; it needs a little more work to
change things without breaking tests.

6 years agoMerge pull request #2519 from bdarnell/escape-nightly
Ben Darnell [Sat, 20 Oct 2018 17:01:38 +0000 (13:01 -0400)] 
Merge pull request #2519 from bdarnell/escape-nightly

web: Fix "invalid escape sequence" error on nightly python

6 years agoci: Enable warnings-as-errors earlier 2519/head
Ben Darnell [Sat, 20 Oct 2018 14:38:35 +0000 (10:38 -0400)] 
ci: Enable warnings-as-errors earlier

This catches import-time warnings in more modules, including a warning
about invalid escape sequences that is now an error on nightly python.

6 years agoMerge commit 'pull/origin/2506'
Ben Darnell [Sat, 20 Oct 2018 14:16:28 +0000 (10:16 -0400)] 
Merge commit 'pull/origin/2506'

6 years agoMerge pull request #2518 from bdarnell/iostream-ssl-error-log
Ben Darnell [Sat, 20 Oct 2018 02:10:28 +0000 (22:10 -0400)] 
Merge pull request #2518 from bdarnell/iostream-ssl-error-log

iostream: Add errno 0 to the list of silent errors in TLS handshakes

6 years agoiostream: Add errno 0 to the list of silent errors in TLS handshakes 2518/head
Ben Darnell [Sat, 20 Oct 2018 00:07:42 +0000 (20:07 -0400)] 
iostream: Add errno 0 to the list of silent errors in TLS handshakes

This error is possible for some connections that don't follow through
with the TLS handshake.

Fixes #2504

6 years agoMerge pull request #2509 from onovy/new-ssl-cert
Ben Darnell [Fri, 19 Oct 2018 23:27:24 +0000 (19:27 -0400)] 
Merge pull request #2509 from onovy/new-ssl-cert

Regenerate test crt

6 years agolocks: Convert to native coroutines
Ben Darnell [Sun, 14 Oct 2018 17:43:33 +0000 (13:43 -0400)] 
locks: Convert to native coroutines

6 years agoweb: Convert RequestHandler._execute to a native coroutine
Ben Darnell [Sun, 14 Oct 2018 17:30:54 +0000 (13:30 -0400)] 
web: Convert RequestHandler._execute to a native coroutine

6 years agohttp1connection: Convert to native coroutines
Ben Darnell [Sun, 14 Oct 2018 15:33:05 +0000 (11:33 -0400)] 
http1connection: Convert to native coroutines

6 years agoMerge pull request #2514 from bdarnell/mypy
Ben Darnell [Sun, 7 Oct 2018 16:24:59 +0000 (12:24 -0400)] 
Merge pull request #2514 from bdarnell/mypy

*: Finish adding type annotations

6 years agotravis: Run docs CI on py37 2514/head
Ben Darnell [Sun, 7 Oct 2018 16:06:52 +0000 (12:06 -0400)] 
travis: Run docs CI on py37

We were running it on py36 as a bit of manual bin-packing to optimize
total CI runtime, but sphinx-on-py36 has some bugs in annotation
introspection that we run into.

6 years agoweb,template: Work around test failures on pypy3
Ben Darnell [Sun, 7 Oct 2018 15:42:49 +0000 (11:42 -0400)] 
web,template: Work around test failures on pypy3

pypy3 doesn't yet have the typing.ContextManager type, and
https://bitbucket.org/pypy/pypy/issues/2868/segfault-with-args-type-annotation-in

6 years agoMerge remote-tracking branch 'origin/master' into mypy
Ben Darnell [Sun, 7 Oct 2018 04:26:16 +0000 (00:26 -0400)] 
Merge remote-tracking branch 'origin/master' into mypy