From 9cebff05ab4bb3862ae1bfc0334044dccfff34d6 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 6 Jul 2016 12:10:41 -0700 Subject: [PATCH] Releasing 0.16.0 --- CHANGELOG.txt | 10 ++++++++++ channels/__init__.py | 2 +- docs/asgi.rst | 5 +++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f375c4f..d69a2df 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,13 @@ +0.16.0 (2016-07-06) +------------------- + +* websocket.connect and websocket.receive are now consumed by a no-op consumer + by default if you don't specify anything to consume it, to bring Channels in + line with the ASGI rules on WebSocket backpressure. + +* You no longer need to call super's setUp in ChannelTestCase. + + 0.15.1 (2016-06-29) ------------------- diff --git a/channels/__init__.py b/channels/__init__.py index cf34394..528ca60 100644 --- a/channels/__init__.py +++ b/channels/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.15.1" +__version__ = "0.16.0" default_app_config = 'channels.apps.ChannelsConfig' DEFAULT_CHANNEL_LAYER = 'default' diff --git a/docs/asgi.rst b/docs/asgi.rst index 811a3c3..85c7180 100644 --- a/docs/asgi.rst +++ b/docs/asgi.rst @@ -708,7 +708,7 @@ Connection Sent when the client initially opens a connection and completes the WebSocket handshake. If sending this raises ``ChannelFull``, the interface -server must drop the WebSocket connection and send no more messages about it. +server must close the WebSocket connection with error code 1013. Channel: ``websocket.connect`` @@ -749,7 +749,8 @@ Receive ''''''' Sent when a data frame is received from the client. If ``ChannelFull`` is -raised, wait and try again. +raised, you may retry sending it but if it does not send the socket must +be closed with websocket error code 1013. Channel: ``websocket.receive``