Andrew Godwin
dcfaf4122b
Work in progress towards accepting websockets explicitly
2016-10-05 10:45:51 -07:00
Luke Hodkinson
0d25860cf2
Run workers in threads. ( #322 )
...
* Use a mixin for common test-case code. This way we can have both
a regular channels test-case, and a transaction test-case, too.
* Adding a reference to django-cq.
* Adding the ability to launch a number of workers in threads.
This is to try and help reduce memory consumption.
* Adding a signal for process level worker startups.
* Cleaning up the threaded worker code.
* Use Python 2.7 friendly code.
* Making the runworker command show a little more information
about how many threads are running.
* Moving the worker ready signal into a method in order to support
polymorphic behavior.
* Ugh, I'm an idiot. Was launching the wrong run.
* Adding a call to the workers' `ready` in `runserver`.
2016-08-31 21:26:03 -07:00
Oskar Hahn
32568dc879
Start only one worker with the nothreading option. ( #298 )
...
Reuse the nothreading option of the runserver command to only start one
worker.
2016-08-15 11:18:24 +10:00
Flavio Curella
9bd8bcf652
pass subprotocols if defined ( #282 )
2016-08-04 15:30:52 -07:00
Tim Watts
4a09cec2d4
Test runserver ( #214 )
...
* Add tests for runserver and runworker management commands
* Fix flake8 and isort errors
* Refactor mocking, add comments to tests
* rm unneeded vargs
2016-06-29 11:26:21 -07:00
Anatol Ulrich
2874350a6a
pass arguments to get_consumer ( #147 )
2016-05-09 09:51:51 -07:00
Andrew Godwin
841e19da79
Change to a full pattern-based routing system.
2016-03-20 13:48:34 -03:00
Andrew Godwin
053850fdd6
Use WSGI runserver if no channel backend configured
2016-03-10 17:55:42 -08:00
Andrew Godwin
c4719f79bc
Don't make worker thread do signals during runserver
2016-03-06 11:11:58 -08:00
Andrew Godwin
484320a675
Reduce Daphne HTTP timeout in runserver mode
2016-03-02 17:00:49 -08:00
Andrew Godwin
973b8b72ad
Show time taken on runserver output
2016-02-21 12:31:16 +00:00
Andrew Godwin
93d1aa9b74
Add staticfiles support and launch multiple serving workers
2016-02-20 23:32:29 +00:00
Andrew Godwin
64fe0cb77f
Add --noasgi option to runserver to run the old WSGI server instead
2016-02-20 22:56:10 +00:00
Andrew Godwin
4f60726ec4
Remove unused imports
2016-02-14 18:50:05 +00:00
Andrew Godwin
943733c447
Additional logging and --noworker option
2016-02-14 18:47:30 +00:00
Andrew Godwin
1328c367dc
Move default-request handling into common place
2016-02-14 17:11:44 +00:00
Andrew Godwin
b468ddd930
More flake fixes
2016-02-10 20:37:57 +00:00
Andrew Godwin
caca13c2bc
Remove extra blank line
2016-02-10 20:31:50 +00:00
Andrew Godwin
41b6750afb
Do much more runserver-like logging
2016-02-10 20:26:56 +00:00
Andrew Godwin
76611b7e6e
Fix up some comments
2016-02-10 19:29:47 +00:00
Andrew Godwin
cd17c88533
Fix flake errors
2016-02-10 19:28:12 +00:00
Andrew Godwin
a4381f427e
Fix runserver to properly autoreload w/Twisted
2016-02-10 19:24:18 +00:00
Andrew Godwin
aff9ca2f13
Update runserver to autoreload w/daphne in main thread
2016-02-09 13:01:46 -08:00
Andrew Godwin
836f6be43a
Make runserver work using daphne
2016-01-02 17:53:53 -08:00
Andrew Godwin
b9464ca149
Start making channels work to ASGI spec.
2016-01-02 10:17:45 -08:00
ekmartin
cf2de79d64
Add isort and fix errors
2015-11-09 13:01:02 +01:00
ekmartin
4469b55d96
Fix pep8 errors using the Django core's flake8 preset
2015-11-09 13:00:00 +01:00
Ben Cole
57f21d71e2
Added logging
2015-11-09 11:16:32 +01:00
Andrew Godwin
fc52e3c5a2
Remove auto-importing of modules
2015-09-09 20:58:32 -05:00
Andrew Godwin
16a0e73c6c
Make runserver work with autoreload
2015-09-03 00:07:57 -07:00
Andrew Godwin
6e91ea0040
Make the location of channels in INSTALLED_APPS not matter
2015-07-13 15:51:10 -05:00
Andrew Godwin
433625da1e
Start working on a WebSocket interface server
2015-06-10 20:39:36 -07:00
Andrew Godwin
80627d8e37
Working database backend and "runworker" command
2015-06-10 11:17:32 -07:00
Andrew Godwin
95e706f71f
Fix line endings
2015-06-10 09:42:34 -07:00
Andrew Godwin
c9eb683ed8
Switch to settings-based backend list, start ORM backend
2015-06-10 09:40:57 -07:00
Andrew Godwin
c2c1ffc5bd
Make everything hang off of channel_layers
2015-06-08 12:40:47 -07:00
Andrew Godwin
2cc1d00e18
Separate channel backend from user-facing class
2015-06-08 12:22:23 -07:00
Andrew Godwin
6cd01e2bc1
Rename to plural "channels", start fleshing out req/resp cycle
2015-06-08 10:51:51 -07:00