Carlton Gibson
9cf12f6b37
Add Dockerfile and wrapper for docker run
.
...
Adds a basic Dockerfile.
Build with:
docker build -t daphne .
The `-t daphne` gives the image the name `daphne` so you can run it easily later.
Do this once to begin, and if you alter the `venv`.
Then you can `docker run` to exectute `pytest`:
```
docker run --rm \
--mount type=bind,source=`pwd`,target=/src \
daphne
```
This mounts the Daphne source code from your checkout into the container, so you can test you latest code, rather than the version you built the container with.
In addition the `docker-tests.sh` helper just wraps that `docker run` command, and deletes any .pyc files, so you don’t get a conflict between the host and container.
2019-06-19 14:12:04 +02:00
Simon Willison
ffd949f2ce
Fix deprecated regex escape sequence. ( #266 )
2019-06-17 10:21:24 +02:00
Mario Rodas
f46c2448b1
Added compatibility for hypothesis 4 ( #261 )
...
hypothesis `average_size` argument was already deprecated [1], and was
effectively removed in hypothesis 4 [2].
[1] https://github.com/HypothesisWorks/hypothesis/pull/1162
[2] https://hypothesis.readthedocs.io/en/latest/changes.html#v4-0-0
2019-06-17 10:10:14 +02:00
Alan Rominger
a3494215cf
Require installing Twisted TLS extras. ( #257 )
2019-04-13 15:04:56 +02:00
d.s.e
0be1d3ef01
Added missing LICENSE to distribution ( #250 )
...
Signed-off-by: Guenther Meyer <d.s.e@sordidmusic.com>
2019-04-13 12:09:29 +02:00
Carlton Gibson
1759643f1f
Releasing 2.3.0
2019-04-09 11:42:31 +02:00
Tom Christie
f52960e587
Support ASGI3 ( #255 )
2019-04-09 11:36:18 +02:00
Andrew Godwin
67cfa98b00
Fixing test dependencies to actual versions
2019-01-31 17:43:23 -08:00
Andrew Godwin
1b77e247f8
Releasing 2.2.5
2019-01-31 17:36:30 -08:00
Avinash Raj
9c574083ff
Support for passing server name as cli argument ( #231 )
2018-12-28 13:42:39 +00:00
Florian Apolloner
cc344c6e34
Fix typo in changelog
2018-12-26 15:49:33 +01:00
Andrew Godwin
699f9dd4cb
Set the websocket handshake from the connect time
2018-12-24 16:04:53 +00:00
Andrew Godwin
8515524c2b
Releasing 2.2.4
2018-12-15 13:28:13 -08:00
Kyle Agronick
c4125c66d4
Only set disconnected time when it is not already set ( #237 )
...
Fixes a memory leak where the time would never expire, as well as an additional case where send is called on an already-cleaned-up instance.
2018-11-27 12:20:27 -08:00
Sylvain Prat
de15dcb4d1
Fixed #234 : Don't listen on port 8000 when provided a file descriptor
2018-11-19 14:13:03 -08:00
Andrew Godwin
5722d4e7ea
Releasing 2.2.3
2018-11-06 10:27:18 -08:00
László Károlyi
20f2bc93d4
Add command-line options for proxy headers
2018-10-26 12:34:15 -07:00
Imblc
e93643ff5a
Fixed #229 : Allow bytes
headers only
...
Previously Daphne was too lax and would happily accept strings too.
2018-09-28 09:45:03 -07:00
Andrew Godwin
3e4aab95e2
Fix Travis release stage
2018-08-29 17:57:06 -07:00
Andrew Godwin
c5554cb817
Tidying up
2018-08-27 14:21:40 +10:00
Andrew Godwin
02a299e5a7
Fix isort in travis
2018-08-27 12:40:51 +10:00
Andrew Godwin
460bdf64db
Only lint the daphne and tests directories
2018-08-27 12:31:54 +10:00
Andrew Godwin
0ed6294406
Implement Black code formatting
2018-08-27 12:29:57 +10:00
Michael
88792984e7
Run tests against Python 3.7 ( #224 )
2018-08-25 09:46:04 +10:00
Andrew Godwin
47358c7c79
Releasing 2.2.2
2018-08-16 21:34:50 -07:00
Andrew Godwin
5fe47cbbed
Add an issue template
2018-08-09 11:36:22 -07:00
Nick Sellen
2f94210321
Add x-forwarded-proto support ( #219 )
2018-07-24 13:25:03 -07:00
Anders Jensen
adb622d4f5
Removed deferToThread for ASGI instance constructor ( #218 )
...
The previous behaviour was from an older spec.
2018-07-22 09:54:42 -07:00
Andrew Godwin
e16b58bcb5
Releasing 2.2.1
2018-07-22 09:47:14 -07:00
Brian May
d5611bccb6
Don't crash if connection closed before application started ( #213 )
...
Fixes #205 .
2018-07-05 18:26:34 -07:00
Andrew Godwin
6dcc0d52b3
send() should not block once connection is closed
2018-06-24 16:33:54 -07:00
Andrew Godwin
bb54f41736
Releasing 2.2.0
2018-06-13 11:55:20 -07:00
Andrew Godwin
ece52b8e79
Don't try and read requests that are closed already ( #205 )
2018-06-02 06:45:02 +01:00
Andrew Godwin
8c031239ad
Remove HTTP timeout by default, and mid-response error for it
2018-05-30 09:52:47 -07:00
Andrew Godwin
84466d4ae4
Fixed #207 : Do header transforms for WebSocket XFF right
2018-05-26 12:16:07 +02:00
Andrew Godwin
9f7e19cf2d
Use clean headers to fix decoding issues
2018-05-25 15:11:09 +02:00
Andrew Godwin
fa3c764433
Fixed #206 : Check applications exist before timing them out
2018-05-25 12:33:46 +02:00
Andrew Godwin
c4360fd70a
Releasing 2.1.2
2018-05-24 14:15:56 +02:00
Andrew Godwin
f046a35dbc
Only validate header names (values are already done)
2018-05-24 12:43:18 +02:00
Andrew Godwin
b3c097aabd
Enforce that header names and values are bytes
2018-05-24 12:31:18 +02:00
Andrew Godwin
dd2c8b2a0f
Don't try to send disconnect when we never made an app instance
2018-05-03 09:47:12 -07:00
Andrew Godwin
097f3ba8e8
Releasing 2.1.1
2018-04-18 10:59:25 -07:00
Andrew Godwin
a7ccfab495
Run server constructor in a threadpool as it's synchronous
2018-04-18 10:57:58 -07:00
Andrew Godwin
cc6af549a6
Releasing 2.1.0
2018-03-05 20:43:48 -08:00
Andrew Godwin
446fc69408
Fixed #150 : Correctly handle bad querystrings
2018-03-04 09:48:33 -08:00
Andrew Godwin
388bbc5c24
Accept ws_protocols for now but ignore the contents
2018-02-24 10:47:09 -08:00
Andrew Godwin
4eb6cab9aa
Fix #180 : asgiref is not a required dependency
2018-02-24 10:45:04 -08:00
Andrew Godwin
f877d54942
Remove subprotocol support (handled by apps now)
2018-02-23 16:53:25 -08:00
Andrew Godwin
9b3e2b4b28
Releasing 2.0.4
2018-02-21 22:04:26 -08:00
Andrew Godwin
0a2c6c2ff2
Fix #175 : Check finished as well as channel
2018-02-21 09:50:59 -08:00