Kyle Agronick
f8f6641ea3
Ran black against codebase and added comments
2018-11-27 14:08:57 -05:00
Kyle Agronick
d6cc8e0e11
Actually last one was good.
...
This reverts commit f0c98780b2
.
2018-11-27 13:40:04 -05:00
Kyle Agronick
f0c98780b2
Ammend previous commit
2018-11-27 13:30:11 -05:00
Kyle Agronick
4d1b87ee42
This fixes the following exception I was seeing in my logs:
...
Nov 27 13:20:47 python3[28665]: File "/var/lib/wwwrun/.virtualenvs//lib/python3.6/site-packages/channels/consumer.py", line 81, in send
Nov 27 13:20:47 python3[28665]: await self.base_send(message)
Nov 27 13:20:47 python3[28665]: File "/var/lib/wwwrun/.virtualenvs//lib/python3.6/site-packages/channels/sessions.py", line 232, in send
Nov 27 13:20:47 python3[28665]: return await self.real_send(message)
Nov 27 13:20:47 python3[28665]: File "/var/lib/wwwrun/.virtualenvs//lib/python3.6/site-packages/daphne/server.py", line 213, in handle_reply
Nov 27 13:20:47 python3[28665]: if self.connections[protocol].get("disconnected", None):
Nov 27 13:20:47 python3[28665]: KeyError: <WebSocketProtocol client=None path=b'/vnc/devices/'>
2018-11-27 13:25:18 -05:00
Kyle Agronick
44b7115db7
Only set disconnected time when it is not already set. Fixes memory leak.
2018-11-27 12:27:44 -05: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
Andrew Godwin
853771ec95
Move testing to use multiprocessing for better reliability
...
We can also hopefully reuse this for LiveServerTestCase
2018-02-19 20:58:47 -08:00
Andrew Godwin
173617ad3b
Fixed #172 : Outgoing frames do not reset ping clock (incoming does)
2018-02-16 09:56:40 -08:00
Andrew Godwin
de0811f13e
Fixed #169 : Don't try to send messages to a closed client
2018-02-14 14:52:49 -08:00
Andrew Godwin
f53eb0dda6
Don't put commas in the header hypothesis tests
2018-02-07 14:15:28 -08:00
Andrew Godwin
12437e2677
Releasing 2.0.3
2018-02-07 12:11:57 -08:00
Andrew Godwin
13511d2ca6
Fixed #162 : Test suite now uses port 0 binding
2018-02-07 12:03:54 -08:00
Andrew Godwin
678a97ec7f
Fixed #152 : Give ASGI apps a grace period after close before killing
...
Also adds a warning when they do not correctly exit before killing.
2018-02-07 12:02:30 -08:00
Jonas Lidén
d46429247f
Unix socket fix ( #161 )
...
Fix error on listeners when passing a unix socket
2018-02-06 00:04:44 -08:00
Andrew Godwin
3bffe981f6
Releasing 2.0.2
2018-02-04 12:22:13 -08:00