[Twisted-Python] Twisted-Python Digest, Vol 90, Issue 16
Jeroen van Veen
j.veenvan at gmail.com
Wed Sep 21 05:01:37 EDT 2011
2011/9/20 Glyph Lefkowitz <glyph at twistedmatrix.com>
> On Sep 20, 2011, at 3:33 PM, Jeroen van Veen wrote:
> For this websocket cms project im working on, i also run django in a wsgi
> container. I wonder if im using it the right way? (
> Generally, yes, except for the "MainThreadWSGIResource" part.
> First of all: you're taking your life in your own hands when you use a
> Twisted API that starts with a single underscore :-).
I don't mind :)
> Second, _WSGIResponse _does_ run the response in a thread; your code isn't
> doing what it claims to be doing. The right way to do this is not to
> override the WSGI layer, but to provide a fake threadpool whose
> 'callInThread' just calls the given callable on the main thread.
Thanks, i'll try to find out how that works. Not really sure what to
callInThread?(the wsgiresponse probably?)
> +1 for having a "plasmoids" module, by the way - does this software control
> a magnetically regulated plasma reaction at some point? :).
Thanks for suggesting new terminology for modules :-) It's nothing like
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python