Commit Graph

65 Commits

Author SHA1 Message Date
Bartek Ogryczak
ee4aa9b292 more consistent metrics (#473)
* more consistent metrics

More consistent metrics, in particular for consumers such as Graphite, CloudWatch etc. you don't want aggregated numbers per second, you want number since previous call. Since we don't want to track all the clients, total since start is the next best thing, because it can be easily calculated by the metrics consumer `count_since_last = pervious_count - current_count`

* changing 'queue_depth' to 'messages_pending', also making 'messages' plurar for 'max_age' to keep it consitent
2017-01-11 11:49:59 -08:00
Daniel Musketa
43b23dc295 Fixed minor typos in docs/. (#439)
* Fixed typo in docs/inshort.rst.

* Fixed typo in docs/asgi.rst.
2016-11-29 10:39:01 -08:00
Sam Bolgert
3dddefa845 Delay Protocol Server (#401)
* Add Delay Protocol Server

Add a process that listens to a specific channel
and delays incoming messages by a given time.

* Add custom django command rundelay
* Add test suite
* Implements #115

* Add channels.delay app

* Add AppConfig

* Move rundelay command to channels.delay app

* Refactor DelayedMessage into model

Move login into a database backed model.
* Update Worker
* Add migration

* Add delay docs page

* Add to TOC

* Fix import sorting

* Add ASGI spec document for Delay Protocol

* Update channels.delay doc with new channel name
* remove interval docs

* Refactor Delay to use milliseconds instead of seconds

Use milliseconds as the default unit. Gives more control to developers.

* Remove interval logic from DelayedMessage
* Remove interval tests
* Tweak test logic to use milliseconds
2016-11-24 10:54:03 -08:00
Andrew Godwin
1212fd45f1 Update ASGI spec from receive_many to receive 2016-11-06 14:16:36 +00:00
Iacopo Spalletti
1d93037bb7 Minor typos (#427) 2016-11-05 13:48:14 +01:00
Tobias Kunze
82f7ff21df Add closing response codes (#426)
Added both to spec and implementation. Regards #414.
2016-11-05 13:39:44 +01:00
Andrew Godwin
c16de0e1e3 Remove last reference to more_body 2016-10-26 09:16:09 -07:00
Andrew Godwin
09b2a12be1 Change to accept being part of send/close 2016-10-05 15:59:55 -07:00
Andrew Godwin
db0d2975a0 Remove middleware approach, change to simpler one 2016-10-05 12:06:34 -07:00
Andrew Godwin
dcfaf4122b Work in progress towards accepting websockets explicitly 2016-10-05 10:45:51 -07:00
Steven Davidson
a23810e0fa Update ASGI draft spec: http.disconnect gains a path key (#326) 2016-08-30 09:09:04 -07:00
Andrew Godwin
9f6ea22eff Add twisted/asyncio extensions to ASGI 2016-07-22 15:12:16 -04:00
Andrew Godwin
91e1daa77c Add code to websocket.disconnect 2016-07-21 11:53:28 -04:00
Andrew Godwin
6fd83f04f8 Add group_channels 2016-07-16 23:04:32 -07:00
Andrew Godwin
9cebff05ab Releasing 0.16.0 2016-07-06 12:10:41 -07:00
Andrew Godwin
69168545d4 Update ASGI spec with backpressure instructions 2016-07-06 11:37:10 -07:00
Andrew Godwin
e890c48f3f Fixed #210: Fix query string to be bytes and not decoded 2016-06-22 09:44:10 -07:00
Andrew Godwin
d8ae2784d8 Note in ASGI about query path 2016-06-21 08:22:57 -07:00
Andrew Godwin
4a42ae9529 ? IS QUESTION MARK 2016-06-09 20:50:33 +00:00
Andrew Godwin
08ecffe107 Update ASGI spec with single-reader channel 2016-06-08 23:14:45 +00:00
Andrew Godwin
d1141e47aa Move email and UDP into their own spec docs 2016-05-18 11:34:48 -07:00
Andrew Godwin
3fe99f061c Update spec a bit more 2016-05-18 09:58:26 -07:00
Andrew Godwin
f346585f7c Change from waffle to 1MB message limit. 2016-05-06 18:41:51 -07:00
Andrew Godwin
feea84f323 Introduce backpressure with ChannelFull 2016-05-05 22:48:12 -07:00
Andrew Godwin
6b0845ef22 Update WSGI URL path to match HTTP 2016-04-27 16:27:33 +01:00
Andrew Godwin
7945859bb2 Update ASGI HTTP spec to make all path parts unicode 2016-04-26 13:09:50 +01:00
Andrew Godwin
e18bfed8f3 Clarify timeout behaviour of block() in asgi 2016-04-04 03:34:05 +02:00
Andrew Godwin
bee81ee620 Update ASGI spec to add enforced long connection timeouts. 2016-03-28 11:44:40 +01:00
Andrew Godwin
acd31a663d Add closed message to request bodies to allow fast failure 2016-03-22 10:15:30 -07:00
Andrew Godwin
8522eb40ca Update single-reader channel names to split on !, not start. 2016-03-21 16:38:23 -07:00
Andrew Godwin
a914cfdcb6 Update ASGI spec to make websocket.receive/disconnect include path
This enables much easier routing for applications, and is not a lot
more overhead, all things considered.
2016-03-20 13:48:34 -03:00
Andrew Godwin
5bf19f52f6 Remove status_text from the HTTP response spec. 2016-03-11 10:30:40 -08:00
Andrew Godwin
820e955515 Change ASGI spec regarding headers. 2016-03-11 10:20:17 -08:00
Andrew Godwin
b4c73ae6a5 Merge pull request #82 from Lukasa/guaranteed-ordering
Be a bit clearer about guaranteed ordering.
2016-03-10 11:51:51 -08:00
Andrew Godwin
ecd9357611 Merge pull request #81 from Lukasa/normative
MUST is preferable to SHOULD
2016-03-10 11:51:08 -08:00
Andrew Godwin
d80444a329 Merge pull request #83 from Lukasa/typo-fix
Stylistic changes.
2016-03-10 11:50:38 -08:00
Andrew Godwin
1bf8532175 Merge pull request #84 from Lukasa/valid-extensions
Clearly you're allowing more extensions.
2016-03-10 11:33:00 -08:00
Cory Benfield
b296fee4c7 Be a bit clearer about guaranteed ordering. 2016-03-10 09:57:33 +00:00
Cory Benfield
e65230b677 Down with RFC 2616 2016-03-10 09:44:48 +00:00
Cory Benfield
c4b1798020 The HTTP specs are quite clear. 2016-03-10 09:43:05 +00:00
Cory Benfield
ce0433f438 MUST is preferable to SHOULD 2016-03-10 09:35:17 +00:00
Cory Benfield
1bb48108fd Stylistic changes 2016-03-10 09:34:29 +00:00
Cory Benfield
69d60a60c5 Clearly you're allowing more extensions. 2016-03-10 09:25:02 +00:00
Andrew Godwin
69186ef7b7 Replace linearize with the more useful enforce_ordering. 2016-02-24 00:40:38 +00:00
Andrew Godwin
2b486b0ef0 Fix broken bits in docs. 2016-02-22 14:10:24 +00:00
Andrew Godwin
be1498768f HTTP Long Poll finishing off 2016-02-14 19:22:46 +00:00
Andrew Godwin
5cd2cbdfee Add test suite for ASGI handlers 2016-02-05 15:53:01 -08:00
Andrew Godwin
17e9824f71 Update database channel backend to pass conformance 2016-02-05 14:16:20 -08:00
Andrew Godwin
717eb0a100 Added the "flush" extension to ASGI, and clarified group expiry 2016-01-17 14:21:45 -08:00
Andrew Godwin
355bf87782 Merge pull request #61 from Lukasa/asgi-push
Draft proposal for Server Push messages
2016-01-05 09:56:13 -08:00