mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Merge pull request #82 from Lukasa/guaranteed-ordering
Be a bit clearer about guaranteed ordering.
This commit is contained in:
commit
b4c73ae6a5
|
@ -773,11 +773,13 @@ a very good performance or implementation reason is present:
|
||||||
handle these within the protocol server and don't expose them in ASGI
|
handle these within the protocol server and don't expose them in ASGI
|
||||||
messages.
|
messages.
|
||||||
|
|
||||||
* If the protocol has guaranteed ordering, ASGI messages should include an
|
* If the protocol has guaranteed ordering and does not use a specific channel
|
||||||
``order`` field (0-indexed) that preserves the ordering as received by the
|
for a given connection (as HTTP does for body data), ASGI messages should
|
||||||
protocol server (or as sent by the client, if available). This ordering should
|
include an ``order`` field (0-indexed) that preserves the ordering as
|
||||||
span all message types emitted by the client - for example, a connect message
|
received by the protocol server (or as sent by the client, if available).
|
||||||
might have order ``0``, and the first two frames order ``1`` and ``2``.
|
This ordering should span all message types emitted by the client - for
|
||||||
|
example, a connect message might have order ``0``, and the first two frames
|
||||||
|
order ``1`` and ``2``.
|
||||||
|
|
||||||
* If the protocol is datagram-based, one datagram should equal one ASGI message
|
* If the protocol is datagram-based, one datagram should equal one ASGI message
|
||||||
(unless size is an issue)
|
(unless size is an issue)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user