Andrew Godwin
6fe841337d
Fix missing import
2016-06-16 11:45:08 +01:00
Andrew Godwin
773f1332ee
Fix import earliness for auth model
2016-06-16 11:42:08 +01:00
Andrew Godwin
0fe438a445
Improve decorator support for class based consumers
2016-06-16 11:37:21 +01:00
Andrew Godwin
68ce1964c8
Releasing 0.14.1
2016-06-10 05:42:29 +00:00
Krukov D
e31e326f10
Added unicode_literals from future at tests/base ( #203 )
2016-06-09 12:41:25 -07:00
thewayiam
18d4cc8e6f
#196 : made worker serve staticfiles if DEBUG=True ( #197 )
2016-06-05 22:06:37 -07:00
thewayiam
6eaee8f522
#188 : add/discard message.reply_channel on generic group_send ( #189 )
2016-06-02 16:52:35 -07:00
Krukov D
f8debafbd3
Added path parameter to the HttpClient.send method ( #193 )
2016-06-02 16:25:55 -07:00
Krukov D
c4f016b9c2
Fix for apply_routes: wrap routes in list, if it is not so ( #192 )
2016-06-02 16:25:39 -07:00
Krukov D
2874a0972c
Using logger.error instead of logger.exception ( #191 )
2016-06-02 16:25:26 -07:00
Tim Watts
56104e7fc6
Tests for file and streaming response handling inside Django ( #185 )
...
* add first streaming and file response tests
* iterate over response and not streaming content directly
* add coverage for FileResponse and StreamingHttpResponse
* added tests for headers, json responses, and redirect responses
* rm print statement
* skip failing stringio test
2016-06-01 09:47:50 -07:00
Andrew Godwin
38641d8522
Fixed #182 : Close response once we're done with it
2016-05-31 19:04:12 +00:00
Krukov D
2f3114b21e
In-between method for adding decorators in right way + a few tests for generic consumer ( #171 )
...
* Corrected doc string for BaseConsumer
* Added get_handler method for Class-base consumers for wrapping by decorators in right way
* Added a few tests for generic consumers
2016-05-29 09:36:29 -07:00
Krukov D
1a09540ca8
Added fail_on_none parameter for Client.consume function ( #172 )
2016-05-28 18:31:15 -07:00
Andrew Godwin
1168ca670e
Releasing 0.14.0
2016-05-25 18:00:31 -07:00
Andrew Godwin
49c9b74d6f
Docs/flake fixes
2016-05-25 17:52:53 -07:00
Andrew Godwin
bfacee6319
Add class-based consumers
2016-05-25 17:45:56 -07:00
Krukov D
8827063bf2
Remove inherited methods and relative imports ( #163 )
...
* Remove inherited methods from HttpClient
* Using relative import in base of tests
2016-05-19 12:19:39 -07:00
Krukov D
05c41e9ad6
More tests utils for happy users ( #162 )
...
* Added Client abstraction
* Added apply_routes decorator/contextmanager
* Fix apply routes as decorator
* Separated Http specific client and 'Simple' client
* Remove Clients from ChannelTestCase
* Added cookies and headers management
* Fix wrong reverting
* Fixs for code style
* Added space before inline comment
2016-05-19 11:45:25 -07:00
Andrew Godwin
32320ec094
Releasing 0.13.1
2016-05-13 10:27:12 -07:00
Sachin Rekhi
363b5a09e9
improve @enforce_ordering to leverage a wait channel to avoid spinlocks ( #144 )
...
* improved @enforce_ordering to leverage a wait channel to avoid spinlocks
* addressed pyflake issues
* renamed wait channel to __wait__.<reply channel>
* handled potential ChannelFull exception
* updated sessions unit tests
* updated enforce_ordering tests to reflect new approach of leveraging wait channels
* addressed pyflake issues
* more pyflake fixes
* removed close_on_error handling on enforce_ordering since only worked on websockets
2016-05-12 10:38:06 -07:00
Anatol Ulrich
2874350a6a
pass arguments to get_consumer ( #147 )
2016-05-09 09:51:51 -07:00
Krukov D
9505906b42
Fix re-inserting, with tests ( #146 )
...
* Stopping re-inserting at first success
* Added a few tests for worker running
* Coping routes in channels layers at the ChannelTestCase
* Remake worker test with less mocking
2016-05-08 12:21:58 -07:00
Andrew Godwin
6e40fba47c
Releasing version 0.13.0
2016-05-07 13:09:12 -07:00
Andrew Godwin
dcbab8b2b4
Remove DatabaseLayer and improve deployment docs mentioning it
2016-05-07 10:35:12 -07:00
Andrew Godwin
feea84f323
Introduce backpressure with ChannelFull
2016-05-05 22:48:12 -07:00
Andrew Godwin
7b75761644
Flake8 fixes
2016-05-04 18:52:52 -07:00
Andrew Godwin
2f01155bfd
Session tests
2016-05-04 10:39:38 -07:00
Andrew Godwin
96735b917b
Make flake8 like indentation
2016-05-03 18:14:41 -07:00
Andrew Godwin
45dfeb548e
Django 1.10 patch fixes
2016-05-03 18:10:51 -07:00
Andrew Godwin
cf9d7d6f76
Change to more precise TestCase import
2016-05-03 18:06:43 -07:00
Andrew Godwin
e451ea4d69
Reformat runworker a bit
2016-05-02 19:17:24 -07:00
Andrew Godwin
a9187b99fe
More formatting fixes
2016-04-30 20:55:19 -07:00
Andrew Godwin
698c2aaca0
Fix worker.py formatting
2016-04-30 19:15:45 -07:00
Andrew Godwin
073cbca16d
Fixed #116 : Allow configuration of worker listening
2016-04-30 19:11:08 -07:00
Krukov D
681616caa4
Fix missed logger name ( #138 )
2016-04-28 09:52:49 +01:00
Andrew Godwin
7bc35f1842
Fix up tests under py3
2016-04-26 14:05:17 +01:00
Andrew Godwin
b374a2a604
Releasing 0.12.0
2016-04-26 13:51:41 +01:00
Andrew Godwin
e684b27e46
Switch to uncode path and query string for HTTP
2016-04-26 13:33:26 +01:00
Michael Kutý
80206e5452
Fix loading files. #123
2016-04-08 11:04:55 -07:00
Andrew Godwin
8abe53e170
Change type of error
2016-04-06 22:02:41 -07:00
Andrew Godwin
70637b7afe
Wrap line properly
2016-04-05 22:29:00 -07:00
Andrew Godwin
cd9c049296
Rename database layer models to be consistent
2016-04-05 22:25:05 -07:00
Andrew Godwin
4504eb6ec9
Add select_for_update() to improve isolation
2016-04-05 22:18:54 -07:00
Andrew Godwin
732167282b
Some import sorting stuff
2016-04-05 17:38:05 -07:00
Andrew Godwin
11218089bd
Fix flake error
2016-04-05 17:30:47 -07:00
Andrew Godwin
4437e04528
Fix circular import issue
2016-04-05 17:19:23 -07:00
Andrew Godwin
4bab456c61
Fail to work if you have channel-enabled Django
2016-04-05 16:44:26 -07:00
Andrew Godwin
d29f02fb33
Patchinator/django fixes
2016-04-05 16:20:49 -07:00
Andrew Godwin
2ef0baa5c2
Release 0.11.0
2016-04-05 08:21:54 -07:00
David Evans
28e897d9bc
Remove lazy loading of middleware
...
This mirrors the equivalent change in Django itsef. See:
https://code.djangoproject.com/ticket/26452
99bb7fcc18
2016-04-04 13:36:18 -07:00
Andrew Godwin
37923c3674
Flake8 fixes
2016-04-04 03:38:38 +02:00
Andrew Godwin
67e3e55131
Respect HTTP request body close in ASGI.
2016-04-04 03:34:05 +02:00
Andrew Godwin
920882f1da
Implement timeout on request body reading
2016-04-04 03:34:05 +02:00
Andrew Godwin
a563d4353f
Fix new routing channel name collector and add test
2016-04-04 03:34:05 +02:00
Andrew Godwin
5a22412c16
Considerably improve routing code simplicity and shortcircuiting
2016-04-04 03:34:05 +02:00
Andrew Godwin
0e3c742a80
Introduce ChannelTestCase to make testing easier
2016-04-04 03:34:05 +02:00
Andrew Godwin
8f40ad1d68
Releasing 0.10.3
2016-03-29 11:44:15 +01:00
Andrew Godwin
1ab757fffb
Implement group_expiry on database channel backend
2016-03-28 11:59:25 +01:00
Andrew Godwin
59198ea93e
Add signed cookie warning
2016-03-28 11:45:24 +01:00
Andrew Godwin
40b2348600
Fixed #101 : Obscure error when strings in routing list.
2016-03-26 15:28:40 -07:00
Andrew Godwin
392ba22768
Releasing 0.10.2
2016-03-23 12:53:34 -07:00
Andrew Godwin
f829a14312
Don't show last-chance traceback when DEBUG is off.
2016-03-23 12:53:02 -07:00
Andrew Godwin
7bc94b342e
Implement last-resort error handler for HTTP requests
...
There's no WSGI server to do this for us, so Channels has to.
2016-03-23 11:50:35 -07:00
Andrew Godwin
8a65199bfe
Also normalise include patterns, and add tests for all regex norm
2016-03-22 10:39:27 -07:00
Andrew Godwin
7864519241
Releasing 0.10.1
2016-03-22 10:32:12 -07:00
Andrew Godwin
52c821a186
Increase FileResponse block size everywhere, not just staticfiles
2016-03-22 10:31:37 -07:00
Andrew Godwin
10224ff06c
Flake, stop worrying about this file.
2016-03-22 10:20:15 -07:00
Andrew Godwin
6884e7d1e8
Fixed #93 : Unicode regex patterns not working on http.request path
2016-03-22 10:17:38 -07:00
Andrew Godwin
afa46cfe0f
Provide route and include at top level
2016-03-22 10:15:52 -07:00
Andrew Godwin
13d6c88c7f
Releasing 0.10.0
2016-03-21 16:46:42 -07:00
Andrew Godwin
8522eb40ca
Update single-reader channel names to split on !, not start.
2016-03-21 16:38:23 -07:00
Andrew Godwin
4f8b297462
Make flake8 more happy
2016-03-20 14:10:05 -03:00
Andrew Godwin
3cdf51ed84
Better spacing in routing tests
2016-03-20 14:06:35 -03:00
Andrew Godwin
18385d68f0
Fix bad rename stuff
2016-03-20 13:52:54 -03:00
Andrew Godwin
841e19da79
Change to a full pattern-based routing system.
2016-03-20 13:48:34 -03:00
Andrew Godwin
2732a66e81
Improve name_that_thing to handle instance methods
2016-03-20 13:48:34 -03:00
Andrew Godwin
8faf37bfbf
Fix type of cookie header string
2016-03-16 09:50:15 -03:00
Andrew Godwin
f1ab1100f5
Locale fix from runserver ( #86 )
2016-03-12 12:14:02 -08:00
Andrew Godwin
5bf19f52f6
Remove status_text from the HTTP response spec.
2016-03-11 10:30:40 -08:00
Andrew Godwin
9f8bf30cdd
Fix handler test
2016-03-11 10:23:07 -08:00
Andrew Godwin
820e955515
Change ASGI spec regarding headers.
2016-03-11 10:20:17 -08:00
Andrew Godwin
a06026c99a
Releasing 0.9.5
2016-03-10 17:57:57 -08:00
Andrew Godwin
df8a9dbbd1
Change --alias to --layer on runworker
2016-03-10 17:57:13 -08:00
Andrew Godwin
1ee7b2861c
Add --alias option to runworker
2016-03-10 17:55:42 -08:00
Andrew Godwin
053850fdd6
Use WSGI runserver if no channel backend configured
2016-03-10 17:55:42 -08:00
Andrew Godwin
a2d64f9335
Releasing 0.9.4
2016-03-08 10:20:08 -08:00
Andrew Godwin
4b82d989ca
Remove old code from Channel/Group
2016-03-06 12:12:48 -08:00
Andrew Godwin
c4719f79bc
Don't make worker thread do signals during runserver
2016-03-06 11:11:58 -08:00
Andrew Godwin
08d1f9a14d
Graceful shutdown for workers on SIGTERM and SIGINT
2016-03-02 17:21:58 -08:00
Andrew Godwin
484320a675
Reduce Daphne HTTP timeout in runserver mode
2016-03-02 17:00:49 -08:00
Andrew Godwin
1869061fa2
I like having a plus here.
2016-03-02 10:46:22 -08:00
Andrew Godwin
447c2e77cc
Fix line length
2016-03-02 10:46:05 -08:00
Andrew Godwin
8fba5220d9
Detect if you forget to decorate things with enforce_ordering
2016-03-02 10:42:18 -08:00
Andrew Godwin
cdde27b55a
Releasing 0.9.3
2016-02-28 22:06:25 -08:00
Andrew Godwin
b129adf4a4
Increase FileResponse chunk size for staticfiles handler
2016-02-28 22:04:03 -08:00
Andrew Godwin
61b8940e99
Warn when trying to use runworker with in memory layer
2016-02-28 21:52:35 -08:00
Andrew Godwin
9dae793cde
Release 0.9.2
2016-02-28 21:12:11 -08:00
Andrew Godwin
fe352542cc
Fix for Django 1.8/1.9
2016-02-24 07:00:33 -08:00
Andrew Godwin
c64fe97463
Fix trailing whitespace
2016-02-23 19:36:17 -08:00
Andrew Godwin
69186ef7b7
Replace linearize with the more useful enforce_ordering.
2016-02-24 00:40:38 +00:00
Andrew Godwin
38c6df8125
Move ResponseLater into exceptions module
2016-02-24 00:39:48 +00:00
Andrew Godwin
5ff77719be
Make database channel layer use transactions to stop dupes
2016-02-23 22:14:30 +00:00
Andrew Godwin
307fc6c0bb
Release 0.9.1
2016-02-21 13:19:57 +00:00
Andrew Godwin
ca0d9e9651
Fix version import during pip install
2016-02-21 13:18:57 +00:00
Andrew Godwin
73f840432d
Version 0.9
2016-02-21 13:16:03 +00:00
Andrew Godwin
973b8b72ad
Show time taken on runserver output
2016-02-21 12:31:16 +00:00
Andrew Godwin
8221bbc0be
Staticfiles handler and consumer
2016-02-20 23:33:27 +00:00
Andrew Godwin
d18c715f8f
Fix core logging when no message on channel
2016-02-20 23:33:14 +00:00
Andrew Godwin
93d1aa9b74
Add staticfiles support and launch multiple serving workers
2016-02-20 23:32:29 +00:00
Andrew Godwin
247a26b91a
Fix streaming responses (e.g. staticfiles.serve)
2016-02-20 23:32:01 +00:00
Andrew Godwin
e666355fad
Remove old echo code and allow configuring of http handler
2016-02-20 23:31:27 +00:00
Andrew Godwin
d180f07b54
Wrap long line
2016-02-20 22:59: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
267e56ce2a
Make transfer_user fail silently if no user
2016-02-20 22:47:48 +00:00
Andrew Godwin
171b9d8552
Add META['SCRIPT_NAME'] for backwards compat
2016-02-20 22:47:35 +00:00
Andrew Godwin
31447a4641
User auth fixing
2016-02-14 21:27:12 +00:00
Andrew Godwin
5c9093ddeb
Fix bug with sending empty response
2016-02-14 21:26:34 +00:00
Andrew Godwin
be1498768f
HTTP Long Poll finishing off
2016-02-14 19:22:46 +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
fee6a38483
Handle request body encoding
2016-02-10 19:50:36 +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
1a7010aa2c
Make _stream work on AsgiRequest
2016-02-10 19:15:00 +00:00
Andrew Godwin
c7d417dd33
OKAY I THINK THIS IS THE LAST STUPID MISTAKE
2016-02-09 13:35:13 -08:00
Andrew Godwin
49cbf31872
Fix more python 3 unicode issues
2016-02-09 13:32:37 -08:00
Andrew Godwin
be172045ed
Fix test path encoding
2016-02-09 13:04:23 -08:00
Andrew Godwin
aff9ca2f13
Update runserver to autoreload w/daphne in main thread
2016-02-09 13:01:46 -08:00
Andrew Godwin
5ddeed4a25
Remove dead code
2016-02-09 13:01:46 -08:00
Andrew Godwin
b7b11cb075
Remove sneaky print
2016-02-05 16:47:43 -08:00
Andrew Godwin
fa58375a51
Python 3 fixes
2016-02-05 16:47:11 -08:00
Andrew Godwin
13766a3027
Fix flake8 errors
2016-02-05 16:26:05 -08:00
Andrew Godwin
1dab70ed86
Update CI config a bit more.
2016-02-05 16:22:58 -08:00
Andrew Godwin
5cd2cbdfee
Add test suite for ASGI handlers
2016-02-05 15:53:01 -08:00
Andrew Godwin
17e9824f71
Update database channel backend to pass conformance
2016-02-05 14:16:20 -08:00
Andrew Godwin
a9810014ca
Rework database channel layer and tests, to use ASGI conformance suite
2016-01-17 14:28:01 -08:00
Andrew Godwin
5fa357e403
Disable linearize until it's reimplemented on sessions.
2016-01-17 14:22:28 -08:00
Andrew Godwin
5348c52778
Fixed #33 : Add wsgi.multi* variables for back compat.
2016-01-02 18:35:43 -08:00
Andrew Godwin
d452486524
Correct body/POST handling
2016-01-02 18:10:25 -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
Andrew Godwin
5a95248b3f
Initial script name support
2015-12-18 21:23:09 +00:00
Andrew Godwin
a0b2696b30
Merge pull request #50 from bastianh/redis_url
...
Fixed #39 : Allow redis:// URL redis configuration
2015-12-16 21:37:40 +00:00
Bastian Hoyer
70bc429d0b
Fixed #39 : Allow redis:// URL redis configuration
2015-12-16 20:42:56 +01:00