Commit Graph

285 Commits

Author SHA1 Message Date
Raphael Michel
2ffed27a77 Fixed a regression introduced in fixing #55 2016-11-05 14:18:54 +01:00
Sean Mc Allister
76b441ecdf Merge branch 'master' into ticket_10 2016-11-05 14:07:49 +01:00
Sean Mc Allister
a2458ac47c test mixed endpoints and some cleanup 2016-11-05 13:48:24 +01:00
Andrew Godwin
a672da7b21 Merge pull request #58 from rixx/
Respond with a code when closing a connection
2016-11-05 13:38:25 +01:00
Sean Mc Allister
f115f808c3 Merge branch 'master' into ticket_10 2016-11-05 12:38:03 +01:00
Tobias Kunze
c6e4ea25d1 Respond with a code when closing a connection
Regards django/channels#414
2016-11-05 12:27:16 +01:00
Raphael Michel
61ed32d500 Fix #55 -- Optionally parse X-Forwarded-For header 2016-11-05 11:45:48 +01:00
Sean Mc Allister
f9f799f75f Merge branch 'master' into ticket_10 2016-11-04 14:40:40 +01:00
Stratos Moros
bd0530d147 make access log line buffered
fixes #53
2016-10-25 15:43:44 +03:00
Stratos Moros
cd8b709ce8 fix variable name 2016-10-25 15:43:38 +03:00
Sean Mc Allister
e38c7541da Merge remote-tracking branch 'upstream/master' into ticket_10 2016-10-21 17:51:52 +02:00
Sean Mc Allister
3e2370b5f1 log full uri for http response 2016-10-11 17:09:34 +02:00
Andrew Godwin
b537bed180 Make accept silently pass if already accepted 2016-10-05 16:00:11 -07:00
Andrew Godwin
8c637ff728 Fix default verbosity 2016-10-05 14:46:54 -07:00
Andrew Godwin
685f3aed1e Switch to new explicit WebSocket acceptance 2016-10-05 13:45:12 -07:00
Andrew Godwin
6df13290b2 Merge pull request #47 from Krukov/fix-285-channels-issue
Catching error at receive_many form channel layer
2016-09-22 14:27:20 -07:00
Andrew Godwin
bfce80a062 Merge pull request #45 from Krukov/patch-add-verbosity
Verbosity
2016-09-22 14:23:25 -07:00
Krukov Dima
790c482cb6 Catching error at receive_many form channel layer 2016-09-21 18:24:05 +00:00
Krukov Dima
cf096bab5c Logging to the python standard library 2016-09-21 18:12:35 +00:00
Adam Chainz
bcaf1de155 Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-09-21 08:43:24 +01:00
Krukov Dima
0844061296 Add verbosity to log twisted log 2016-09-16 20:36:31 +00:00
Krukov Dima
c6270e7e4e Pep8 2016-09-16 20:34:20 +00:00
Steven Davidson
edb67cac74 Attach path to http.disconnect
https://github.com/andrewgodwin/channels/issues/303
2016-08-29 00:03:42 +01:00
Andrew Godwin
1a5cce9c75 Releasing 0.15.0 2016-08-28 11:27:05 -07:00
Andrew Godwin
0b37e80614 Add attribute check for #31 and remove version pin 2016-08-28 11:14:13 -07:00
Bas Peschier
65da239aa2 Tell Twisted to keep producing data after connection upgrade 2016-08-28 14:39:08 +02:00
Sean Mc Allister
c3585c463b py2 compatibility 2016-08-11 22:36:57 +02:00
Sean Mc Allister
95351ffebb use twisted endpoint description strings to bind to ports and sockets 2016-08-11 17:52:27 +02:00
Andrew Godwin
fca52d4850 Correctly catch send dispatch errors 2016-08-05 22:17:38 -07:00
globophobe
9a2748d7da Implement connection force-close via ping timeout
Logging will show WSDISCONNECT.
2016-08-04 20:26:57 +09:00
Andrew Godwin
dd3bf9b0b0 Use twisted variant of receive_many if available. 2016-07-26 20:00:11 +01:00
Andrew Godwin
a249d6a69c Releasing 0.14.3 2016-07-21 15:05:16 -04:00
Andrew Godwin
da40761b95 Fixed memory leak due to uninitialised Twisted logging 2016-07-21 14:59:26 -04:00
Andrew Godwin
2bb68654fc Send WebSocket close code on disconnect 2016-07-21 11:53:16 -04:00
Andrew Godwin
8619c31cf9 Better logging for muting 2016-07-21 11:53:15 -04:00
Sean Mc Allister
89686f9034 expose file descriptor on command line 2016-07-13 14:09:14 +02:00
Sean Mc Allister
0e1bce1714 add file_descriptor keword argument to daphne server and instruct twisted reactor to use the file descriptor 2016-07-13 14:07:57 +02:00
Andrew Godwin
d17394e84c Releasing 0.14.2 2016-07-07 16:58:12 -07:00
Andrew Godwin
c4f16fa20f Releasing 0.14.1 2016-07-06 12:09:34 -07:00
Andrew Godwin
45e67d8e60 Use lower-level autobahn API so it likes us 2016-07-06 12:08:44 -07:00
Andrew Godwin
4c2c2d0fff Also close the socket on receive backpressure 2016-07-06 12:05:14 -07:00
Andrew Godwin
ac7af23df1 Releasing 0.14.0 2016-07-06 11:52:59 -07:00
Andrew Godwin
d9ba4c500a Send a closure code with the backpressure close 2016-07-06 11:49:43 -07:00
Andrew Godwin
0f1b0b85b6 Fixed #18: Drop WebSocket connections on .connect backpressure 2016-07-06 11:41:24 -07:00
Andrew Godwin
9310094970 Remove unused variable 2016-07-06 11:41:23 -07:00
Flavio Curella
9392e526ea parse multiple subprotocols and return the first match 2016-06-29 11:21:50 -05:00
Andrew Godwin
5d8a5f14eb Releasing version 0.13.1 2016-06-28 15:27:14 -07:00
Andrew Godwin
6679b8dfdf Fixed #28: Logging breaking bad WebSocket error messages 2016-06-27 16:41:48 -07:00
Andrew Godwin
da3cce79d0 Releasing 0.13.0 2016-06-22 09:48:37 -07:00
Andrew Godwin
fd5928c1b1 Fix query string encoding to be bytes and not decoded 2016-06-22 09:42:43 -07:00
Andrew Godwin
e02fa95987 Releasing 0.12.2 2016-06-21 08:28:20 -07:00
Andrew Godwin
0942b382ce Fix python 3 header grabbing 2016-06-21 08:24:27 -07:00
Andrew Godwin
0ebfea94a8 Fix header name, add test 2016-06-21 08:20:34 -07:00
Andrew Godwin
cdafec588c Fix header to look for 2016-06-21 08:17:14 -07:00
Andrew Godwin
5a451ab06a Fixed #24: Configurable root_name options 2016-06-21 08:15:35 -07:00
Andrew Godwin
66e005f277 Intepret + in query string section as a space 2016-06-21 08:15:35 -07:00
jpic
c85403b736 Remove unused method 2016-06-15 21:54:54 +02:00
Andrew Godwin
8b751ca249 Releasing 0.12.1 2016-05-18 10:14:27 -07:00
Andrew Godwin
d786329abb Fixed #12: Crash on receiving high byte in path 2016-05-18 10:08:15 -07:00
Andrew Godwin
81d99a34d3 Modify Daphne to send WS headers as a tuple. 2016-05-18 09:58:07 -07:00
Andrew Godwin
105e914468 Releasing version 0.12.0 2016-05-07 13:01:05 -07:00
Andrew Godwin
2d777e75f9 Take note of backpressure 2016-05-07 13:00:09 -07:00
Andrew Godwin
905b71a745 Releasing 0.11.4 2016-05-04 11:34:33 -07:00
Andrew Godwin
c863e2f378 Fixed #8: UNIX sockets now don't try and send client/server info 2016-05-04 11:30:37 -07:00
Andrew Godwin
ad8511e144 Releasing 0.11.3 2016-04-27 09:52:13 +01:00
Andrew Godwin
13bac47d70 Don't decode + in URLs 2016-04-27 09:50:39 +01:00
Andrew Godwin
9fd113dca5 Releasing 0.11.2 2016-04-27 09:45:47 +01:00
Andrew Godwin
8581192cad Update path encoding for WebSockets 2016-04-27 09:44:46 +01:00
Andrew Godwin
47a11fdf46 Releasing 0.11.1 2016-04-26 13:50:02 +01:00
Andrew Godwin
8848f19079 Fix HTTP test 2016-04-26 13:43:14 +01:00
Andrew Godwin
e9d61fc1c8 Fix up path encoding for WS too 2016-04-26 13:37:50 +01:00
Andrew Godwin
1fcb76e956 Version 0.11.0 2016-04-26 13:24:26 +01:00
Andrew Godwin
bce5cdf13d Send paths and query strings pre-decoded as per updated ASGI spec 2016-04-26 13:24:26 +01:00
Flavio Curella
caee853da7 add --ws-protocols to cli arguments 2016-04-07 10:15:18 -05:00
Flavio Curella
1d1b397aa2 add support for websocket protocols 2016-04-07 10:03:05 -05:00
Andrew Godwin
7b13995dee Releasing 0.10.3 2016-04-05 08:12:50 -07:00
Andrew Godwin
45b121572c Hard error on invalid websocket reply messages 2016-04-05 08:04:10 -07:00
Andrew Godwin
6ea3dd803e Respect access_log=- 2016-04-03 21:10:23 -07:00
Andrew Godwin
3c726e0d51 Releasing 0.10.2 2016-04-03 21:05:55 -07:00
Andrew Godwin
768b852eec Add length to access log 2016-04-03 21:02:35 -07:00
Andrew Godwin
074f73acb4 Don't fail timeouts when slow request being processed 2016-04-03 20:56:48 -07:00
Andrew Godwin
7c330e71fa Add basic access logging (enabled by default to stdout) 2016-04-04 00:29:05 +02:00
Andrew Godwin
e0e27ff9eb Releasing 0.10.1 2016-03-29 03:31:32 -07:00
Andrew Godwin
ca35d6c18f Add WebSocket keepalive ping support with configurable interval 2016-03-29 03:28:05 -07:00
Andrew Godwin
5cb28d1e10 Allow binding to UNIX sockets instead of TCP address/port. 2016-03-28 03:33:21 -07:00
Andrew Godwin
037f129117 Add timeout to WebSockets as per ASGI spec 2016-03-28 03:28:15 -07:00
Andrew Godwin
a5946922f5 Releasing version 0.10 2016-03-21 16:45:24 -07:00
Andrew Godwin
e7b323893f Change to new style of single-reader channel 2016-03-21 16:40:29 -07:00
Andrew Godwin
25626fa3bf Update daphne to new asgi spec 2016-03-20 12:29:04 -03:00
Andrew Godwin
89ebad14f9 Correctly allow for more than one Set-Cookie header 2016-03-16 09:49:29 -03:00
Andrew Godwin
ef22ac9528 Fix test, and remove custom status text feature 2016-03-11 10:29:17 -08:00
Andrew Godwin
a6e11d55a4 Update to reflect new ASGI spec. 2016-03-11 10:21:23 -08:00
Andrew Godwin
f9a6150aed Releasing 0.9.3 2016-03-08 10:16:50 -08:00
Andrew Godwin
1fb01f59b8 Merge pull request #2 from erikash/fix-urlencode
urlencode now handles parse_qs encoding correctly.
2016-03-08 10:15:25 -08:00
Andrew Godwin
6a7de0b6fd Releasing 0.9.2 2016-03-02 16:59:37 -08:00
Andrew Godwin
a5cf4c0961 Update error page CSS 2016-03-02 16:58:13 -08:00
Andrew Godwin
0ad7f1c2a2 Add timeout 503 responses with configurable delay. 2016-03-02 11:25:34 -08:00
Andrew Godwin
d445844061 Releasing 0.9.1 2016-03-01 00:09:33 -08:00
erikash
238e75cbd3 urlencode now handles parse_qs encoding correctly.
The autobahn websocket protocol.py line 2487 uses parse_qs(query) which always returns a list as a return value.
For example:
urllib.parse.parse_qs('room=test') returns {'room': ['test']}. 
In order to parse it correctly later, doseq for urlencode must be set to True.
2016-02-28 16:36:19 +02:00
Andrew Godwin
7b83471e6c Update backend_reader docstring 2016-02-24 08:04:04 -08:00
Andrew Godwin
6f47ba75f9 Remove unused import 2016-02-24 08:01:49 -08:00
Andrew Godwin
d25bea1543 Send order keys with WebSocket packets as per ASGI spec update 2016-02-24 00:41:31 +00:00
Andrew Godwin
eaa762c9e3 Tweak idle delays for better performance 2016-02-23 22:17:24 +00:00
Andrew Godwin
fff69f64a7 Logging tweaks 2016-02-23 22:14:50 +00:00
Andrew Godwin
a683fecfa6 Fix non-websocket connection header parsing 2016-02-23 21:59:33 +00:00
Andrew Godwin
cacce0493d Make WebSockt upgrade header case insensitive 2016-02-23 21:25:26 +00:00
Andrew Godwin
07801e9ae8 Make daphne serving thread idle better 2016-02-23 21:23:55 +00:00
Andrew Godwin
ee20b26921 Version 0.9 2016-02-21 13:06:55 +00:00
Andrew Godwin
aa6c0a73e6 Don't use call in thread because it blocks the main serving thread 2016-02-21 12:31:48 +00:00
Andrew Godwin
1709522162 Fix logging and log action around chunked HTTP responses 2016-02-20 23:33:50 +00:00
Andrew Godwin
b9412f8e82 Send HTTP disconnect messages 2016-02-20 22:48:31 +00:00
Andrew Godwin
f1c2a3b9f7 Correctly send WebSocket headers 2016-02-20 22:48:17 +00:00
Andrew Godwin
ba2bbffd20 Improve HTTP cleanup and multi-response lock 2016-02-14 18:48:53 +00:00
Andrew Godwin
011ec23333 Go back to not passing just the server into protocols 2016-02-10 20:30:36 +00:00
Andrew Godwin
ccd8d18da8 Add logging hooks for things like runserver 2016-02-10 20:26:30 +00:00
Andrew Godwin
8c1b7f8a5a Allow signal handlers to be disabled to run in subthread 2016-02-10 19:23:52 +00:00
Andrew Godwin
95ef5c96e2 Fix type of empty query string 2016-02-10 18:49:46 +00:00
Andrew Godwin
e9fdd4f7b6 Releasing 0.8.2 2016-02-09 12:56:29 -08:00
Andrew Godwin
c9f3b57ea3 Actually send status text 2016-02-09 12:56:03 -08:00
Andrew Godwin
f90736413a Releasing 0.8.1 2016-02-09 12:53:21 -08:00
Andrew Godwin
227c3ea2c4 Python 3 fixes 2016-02-09 12:53:04 -08:00
Andrew Godwin
33ce841d29 Add warning for non-bytes HTTP status messages 2016-02-09 12:44:21 -08:00
Andrew Godwin
f76984ec69 Releasing version 0.8 2016-02-09 12:36:27 -08:00
Andrew Godwin
1f46fdff12 Fix WebSocket protocol to correctly provide more info.
Also removed keepalive code, since it's no longer how we do things.
2016-02-09 12:35:31 -08:00
Andrew Godwin
40ed9625c3 Stop stomping on Twisted's header dict 2016-02-05 17:41:14 -08:00
Andrew Godwin
b86c8a0164 Update WS protocol to have ASGI format 2016-02-05 17:33:02 -08:00
Andrew Godwin
bac3c14bfa Fix python 3 support 2016-02-05 17:23:49 -08:00
Andrew Godwin
c61664dd3c Response chunk support 2016-01-02 18:41:02 -08:00
Andrew Godwin
0f5fe8b274 Modify header sending to match ASGI spec. 2016-01-02 18:09:49 -08:00
Andrew Godwin
94cd1bbc53 Improve logging and fix websocket handoff factory 2016-01-02 17:54:15 -08:00
Andrew Godwin
97f7673df9 Modify HTTP to match ASGI spec 2016-01-02 10:12:03 -08:00
Andrew Godwin
3ac43cacf0 Change to unicode channel names 2016-01-02 09:18:22 -08:00
Andrew Godwin
f38f2a442e Add CWD to path to allow usage on current dir 2016-01-02 09:18:05 -08:00
Andrew Godwin
5033e24804 Disable keepalives for now 2016-01-02 09:17:34 -08:00
Andrew Godwin
88d47df276 Initial commit 2015-12-23 17:05:15 +00:00