Commit Graph

349 Commits

Author SHA1 Message Date
LittlePony
61c8633c5d
Add logger traceback on application error. (#308) 2020-02-05 20:40:44 +01:00
Carlton Gibson
18f2d67f34 Releasing 2.4.1 2019-12-18 20:50:12 +01:00
Carlton Gibson
27f760a814 Avoid Twisted using the default event loop
When switching threads, e.g. when run via Django auto-reloader, the default run loop causes issues detecting async contexts.
Fixes https://github.com/django/channels/issues/1374
2019-12-18 20:50:12 +01:00
Carlton Gibson
eb582d1d43 Releasing 2.4.0 2019-11-20 20:41:07 +01:00
Carlton Gibson
beb836acce Remove macOS Travis build.
Travis' infrastructure is just too slow.
2019-11-20 20:27:00 +01:00
Carlton Gibson
4b7c027b98 Add testing against Python 3.8. 2019-11-20 20:27:00 +01:00
Carlton Gibson
a4efcd5c1d Reduced macOS Travis builds to single env.
Slow, and not any benefit in multiple runs.
2019-11-20 20:27:00 +01:00
Carlton Gibson
78be865eb4
Fixed #276 -- Ensured 500 response when app sends malformed headers. (#281) 2019-11-14 07:13:16 +01:00
Joonhyung Shin
7032f8e0f8 Resolve asyncio + multiprocessing problem when testing. (#247) 2019-11-06 19:51:00 +01:00
Carlton Gibson
d3630e0925
Pin hypothesis at 4.2.3 (#283)
https://travis-ci.org/django/daphne/jobs/595912612

Requirement already satisfied: attrs>=17.4.0 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from twisted) (18.2.0)

hypothesis 4.40.0 has requirement attrs>=19.2.0, but you'll have attrs 18.2.0 which is incompatible.
2019-10-10 05:05:08 +02:00
Simon Willison
333f4644d1 Added support for raw_path in scope. (#268)
As per https://github.com/django/asgiref/pull/92

Required valid URI path fragments to be used in tests:
- Test case must ensure paths are correctly quoted before calling
   run_daphne_request() & co.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2019-07-03 20:22:03 +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