]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
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 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

6 years agoweb,util: Work around "initialize incompatible with superclass" errors
Ben Darnell [Sun, 7 Oct 2018 04:19:52 +0000 (00:19 -0400)] 
web,util: Work around "initialize incompatible with superclass" errors

There are still a few more of these, but they're internal-only.

6 years ago*: Remove some obsolete linter "noqa" cruft
Ben Darnell [Sun, 7 Oct 2018 03:55:32 +0000 (23:55 -0400)] 
*: Remove some obsolete linter "noqa" cruft

6 years agoweb: Improve typings for HTTP verb methods
Ben Darnell [Sun, 7 Oct 2018 03:33:56 +0000 (23:33 -0400)] 
web: Improve typings for HTTP verb methods

Add py.typed marker file and test that client code can be type-checked.

6 years agosetup: Blacken the file
Ben Darnell [Sun, 7 Oct 2018 03:13:06 +0000 (23:13 -0400)] 
setup: Blacken the file

6 years agoci: Enforce black format
Ben Darnell [Sun, 7 Oct 2018 03:07:57 +0000 (23:07 -0400)] 
ci: Enforce black format

6 years ago*: Adopt black as code formatter
Ben Darnell [Sun, 7 Oct 2018 03:03:26 +0000 (23:03 -0400)] 
*: Adopt black as code formatter

It occasionally makes some odd-looking decisions and uses a lot of
vertical space but overall it's a big improvement, especially for the
dense type signatures.

6 years agomypy: Update to 0.630 and pin that version
Ben Darnell [Sun, 7 Oct 2018 02:02:00 +0000 (22:02 -0400)] 
mypy: Update to 0.630 and pin that version

6 years agowebsocket: Add type annotations
Ben Darnell [Mon, 1 Oct 2018 02:20:00 +0000 (22:20 -0400)] 
websocket: Add type annotations

This is more invasive than usual because it defines a Protocol to be
shared between WebSocketHandler and WebSocketClientConnection (and
fixes a bug: an uncaught exception in the callback mode of
WebSocketClientConnection would fail due to the missing log_exception
method).

Fixes #2181

6 years agowsgi: Add type annotations
Ben Darnell [Sun, 30 Sep 2018 16:51:15 +0000 (12:51 -0400)] 
wsgi: Add type annotations

6 years agoauth: Add type annotations
Ben Darnell [Sun, 30 Sep 2018 16:34:05 +0000 (12:34 -0400)] 
auth: Add type annotations

This is a bit hacky and limited because mypy doesn't handle mixins
very well and there's a lot of untypeable json here, but it's better
than nothing.

6 years agoweb,routing: Add type annotations
Ben Darnell [Sat, 29 Sep 2018 20:50:52 +0000 (16:50 -0400)] 
web,routing: Add type annotations

6 years agoRegenerate test crt 2509/head
OndÅ™ej Nový [Sat, 29 Sep 2018 13:59:02 +0000 (15:59 +0200)] 
Regenerate test crt

Newer OpenSSL requires RSA key at least 2048 bits

6 years agotemplate: Add type annotations
Ben Darnell [Sat, 29 Sep 2018 03:40:13 +0000 (23:40 -0400)] 
template: Add type annotations

6 years agohttpclients: Add type annotations
Ben Darnell [Sat, 29 Sep 2018 02:43:48 +0000 (22:43 -0400)] 
httpclients: Add type annotations

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 agolocks,queues: Add type annotations
Ben Darnell [Mon, 17 Sep 2018 12:54:20 +0000 (08:54 -0400)] 
locks,queues: Add type annotations

6 years agoqueues_test: Fix comment
Ben Darnell [Mon, 17 Sep 2018 12:53:08 +0000 (08:53 -0400)] 
queues_test: Fix comment

This test inaccurately described the behavior it was testing.

6 years agoautoreload,process: Add type annotations
Ben Darnell [Sun, 16 Sep 2018 21:35:34 +0000 (17:35 -0400)] 
autoreload,process: Add type annotations

6 years ago*: Minimally type-annotate remaining tests
Ben Darnell [Sun, 16 Sep 2018 20:55:56 +0000 (16:55 -0400)] 
*: Minimally type-annotate remaining tests

Streamline setup.cfg. Includes a few code changes necessary to get
tests typechecking.

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