On 27 Feb, 11:21 am, [email protected] wrote:
Hi all,
I am using Twisted Web WSGIResource to host a Django site. Here's the
code I use to setup the WSGI resource (other boilerplate skipped)
def wsgi_resource():
from django.core.handlers.wsgi import WSGIHandler
pool = threadpool.ThreadPool()
pool.start()
# Allow Ctrl-C to get you out cleanly:
reactor.addSystemEventTrigger('after', 'shutdown', pool.stop)
wsgi_resource = wsgi.WSGIResource(reactor, pool, WSGIHandler())
return wsgi_resource
This generally worked quite well. However I have an API endpoint that
gets hit with multiple POST requests per second (not very much - I'd
say 10-20 req/sec at most). Sometimes I see this in the logs:
If you can put together an http://sscce.org/ it would be easier to
investigate this problem. :)
Jean-Paul
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python