summaryrefslogtreecommitdiff
path: root/src/mailman/database/mysql.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-02-10Experimental Gunicorn support.Barry Warsaw2-1/+4
2017-02-10Gunicorn REST support.Barry Warsaw1-12/+20
Closes #287
2017-02-10Update WSGI functions to take necessary argumentsEric Searcy2-12/+10
* gunicorn.py needs to initialize mailman once, not per request. * make_application takes environment and response arguments, which it passes to the callable WSGI application (in this case, the instance of the RootedAPI class). (wsgiref does something similar, but wsgi_server only needs a copy of the application, and it passes the same two arguments to that object internally. Note, in my opinion wsgiapp.py's make_application has a misleading name, since it doesn't behave like a normal make_application (it's not invoked by a WSGI server). I've left it as-is, though, since it is public.