Commit Graph

773 Commits

Author SHA1 Message Date
Sergio
e6c06861c4 Add reference to run interface servers in docs. (#680)
My mistake, I forgot to make a link to the section before referencing it. Added a link to the "Run Interface Servers" section.
2017-06-22 18:01:10 -07:00
Sergio
1551cb0563 Improve docs consistency on query strings (#681)
Change to room_name parameter and erase references to query strings throughout the documentation tutorial.
2017-06-22 17:53:00 -07:00
Sergio
63b79db352 Link to interface server explanation in concepts (#678)
The docs did not link to the interface server explanation. Relates to issue #677
2017-06-22 10:40:30 -07:00
Sergio
a6a2714a9b Add note on check_accept to testing documentation (#676)
When writing tests, sometimes consumers are expected to reject connections, and while there is a check_accept parameter on send_and_consume, it's not documented. This commit adds a note on the use of the parameter to the docs.
2017-06-21 12:45:07 -07:00
Andrew Godwin
e2444308ff Fixed #672: Need to reset server_cls to hand back to normal Django runserver 2017-06-18 14:42:28 -07:00
Artem Malyshev
54fa7be874 Define TEST_CONFIG for testproject redis layer. (#674) 2017-06-19 05:32:45 +08:00
Andrew Godwin
94b3f3563b Releasing 1.1.5 2017-06-16 10:40:12 +08:00
Andrew Godwin
298aeee5b1 Bump Daphne dependency to a supported version 2017-06-16 10:40:02 +08:00
Andrew Godwin
f912637d73 Releasing 1.1.4 2017-06-15 21:40:43 +08:00
David Sanders
4d524f2d00 Add protocol/server_cls attributes to runserver for extensibility (#661)
Makes it easier to extend the runserver command with custom behaviour.
2017-06-08 15:17:33 +08:00
David Sanders
4450e0607d HTTP/2 support is currently available in Daphne (#663) 2017-06-08 07:56:06 +08:00
ElRoberto538
4e8b02955c Added new argument to runserver to set autobahn handshake timeout (#652)
Allows setting the new option introduced in Daphne.
2017-06-05 10:17:27 -07:00
Andrew Godwin
cd34f650a5 Fix WWW header paragraph in spec 2017-05-31 10:00:08 -07:00
Andrew Godwin
b6a115e431 Sort imports in message.py 2017-05-30 10:10:06 -07:00
Andrew Godwin
93d75f242c Remove unused imports 2017-05-30 00:18:27 -07:00
Andrew Godwin
16612ec126 Remove JS tests from CI for now 2017-05-30 00:11:34 -07:00
Andrew Godwin
e5c91a1299 Remove worker group tests for now as they do not account for threading 2017-05-30 00:07:05 -07:00
Andrew Godwin
601056f712 Fix sigterm handler test 2017-05-29 11:39:15 -07:00
Andrew Godwin
34a047a6ff Fixed #643: Add retry and limit to PendingMessageStore.
This won't fix all backlog issues, but will be sufficient to smooth
over bumps.
2017-05-29 11:07:49 -07:00
AlexejStukov
f2b39c33e6 fixed WorkerGroup's sigterm_handler (#649) 2017-05-29 10:42:51 -07:00
Andrew Godwin
7cd4fb2b42 Clarify receive blocking behaviour 2017-05-26 17:11:15 -07:00
Stephen McDonald
863e298923 Fixed typo (#641) 2017-05-25 00:40:18 -07:00
Steindór
4c2b8da463 Javascript syntax highlighting for documentation (#636) 2017-05-19 14:49:14 -07:00
Maik Hoepfel
50f0b98d43 Two minor spec changes (#625)
* Remove mention of fixed reply channel name

Per the recent changes, the reply channel name is now at the discretion
of the server.

* Clarification on bytes/text values being empty

This commit clarifies that the bytes/text values need to be non-empty
(so not None/'') for them to be treated as present.

* HTTP Response headers are optional

During discussion with Andrew, we noted that they are optional, and that
that makes good sense. So this commit updates the spec to reflect
reality.
2017-04-28 14:44:05 -07:00
Thomas Steen Rasmussen
004b34c67d Decode utf-8 QUERY_STRING when relevant (#623)
Fixes #622.
2017-04-27 17:36:16 -07:00
Andrew Godwin
364d1e45b4 Remove last websocket.send enforcing references 2017-04-25 13:43:34 -07:00
Krukov D
fa413af053 Improvements for test client (#613)
* Tests for httpclient sending content

* Testing ordered consumers

* Added docs

* Added testing for ordering

* Added GET params at HttpClient

* Remove blank line

* Fix py3 bites

* Test Client now support ChannelSocketException

* Fix flake and isort

* Conflict resolution
2017-04-18 20:18:28 -07:00
Krukov D
b7ea0b9287 Rename HTTPClient to WSClient (#609)
This is what it was actually intended as. HTTP testing methods may follow later.
2017-04-17 09:21:10 -07:00
Krukov D
a0cbccfebc Remove encode/decode overhead at binding (#611) 2017-04-16 09:45:29 -07:00
Krukov D
585c093352 Remove unnecessary line (#610) 2017-04-16 09:27:56 -07:00
Artem Malyshev
5e96e3c176 Mention RabbitMQ layer in the docs. (#608) 2017-04-14 17:42:19 -07:00
Artem Malyshev
5445d317fd Provide TEST_CONFIG alias. (#604)
Allows (well, forces) a different channel layer configuration in testing.
2017-04-12 14:51:41 -07:00
Artem Malyshev
5648da5d34 Provide a way to disable static files serving in the live server test case. (#603)
This allows it to be turned off (it's on by default)
2017-04-12 14:01:25 -07:00
Sachin Rekhi
31cd68c89b Delay server will now requeue messages for later when gets ChannelFull exception (#600)
It re-delays them for one second each time rather than dropping them.
2017-04-11 10:25:56 +01:00
Artem Malyshev
db1b3ba951 Add ChannelLiveServerTestCase (#497)
Adds a new test case base class that fires up a live Daphne server and workers for the test case to use, like Django's LiveServerTestCase.
2017-04-11 10:17:47 +01:00
Daniel Hepper
7383280776 Added a decorator that checks origin headers (#593)
Adds a new allowed_hosts_only decorator and extensible base class to allow for checking the incoming Origin header on WebSocket requests, using the Django `ALLOWED_HOSTS` setting by default.
2017-04-07 15:05:34 +02:00
Asif Saifuddin Auvi
4063ac03ed Added 1.11 to tox (#596) 2017-04-07 12:06:34 +02:00
Asif Saifuddin Auvi
9266521f94 Added django 1.11 to travis matrix (#597) 2017-04-07 12:06:26 +02:00
Andrew Godwin
5f7e76141c Actually releasing 1.1.3 2017-04-07 04:35:37 +01:00
Andrew Godwin
64e0470b76 Releasing 1.1.3 2017-04-05 15:00:07 +02:00
Andrew Godwin
0e637e09a4 Add start of IRC client spec draft 2017-04-05 14:59:40 +02:00
Andrew Godwin
fe18d43064 Remove unused import 2017-04-05 13:07:32 +02:00
Andrew Godwin
ceeacdbfc3 Add explicit checks for asgi library versions
Refs daphne/#105
2017-04-05 12:56:43 +02:00
Artem Malyshev
c1f801a20e Improve docs. (#589) 2017-04-05 12:41:30 +02:00
Andrew Godwin
627b97c317 Fixed #588: enforce_ordering failed to wait on process-specific chans 2017-04-03 13:01:20 +02:00
Andrew Godwin
ba54268c19 Releasing 1.1.2 2017-04-01 15:38:38 +01:00
Mike Barkas
de65a41b54 Issue-579: Fix sentence grammar in documentation. (#580) 2017-03-28 14:00:53 -07:00
Mike Barkas
38bc238788 Issue-443: Adding session decorators to reference documentation. (#578) 2017-03-28 14:00:26 -07:00
Andrew Godwin
28ace41edf Fixed #577: Use scheme key from ASGI request message 2017-03-28 13:37:33 -07:00
Andrew Godwin
476d1500c6 Switch from MD5 to SHA-1 to work under FIPS-140-2 2017-03-28 11:38:05 -07:00