summaryrefslogtreecommitdiff
path: root/src/mailman/rules/loop.py
diff options
context:
space:
mode:
authorEric Searcy2015-07-29 19:16:50 -0700
committerBarry Warsaw2017-02-10 11:58:53 -0500
commit7cd3d7e9022a614ef424c266f542c1e5ea52666e (patch)
tree7f9f4320bd988271e70a06a7314fb728bad460c8 /src/mailman/rules/loop.py
parent2a4cade68d4d77c6107e090a39fad4a3011ee81d (diff)
downloadmailman-7cd3d7e9022a614ef424c266f542c1e5ea52666e.tar.gz
mailman-7cd3d7e9022a614ef424c266f542c1e5ea52666e.tar.zst
mailman-7cd3d7e9022a614ef424c266f542c1e5ea52666e.zip
Update WSGI functions to take necessary arguments
* 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.
Diffstat (limited to 'src/mailman/rules/loop.py')
0 files changed, 0 insertions, 0 deletions