
report at bugs
Nov 3, 2009, 11:05 AM
Post #3 of 9
(328 views)
Permalink
|
|
[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests
[In reply to]
|
|
Phillip J. Eby <pje [at] telecommunity> added the comment: This is not an issue with CGI, but an issue with using an inappropriate WSGI handler for a long-running process environment that only emulates CGI. That is, in a true CGI environment, there can't be *multiple* requests made to CGIHandler, and so it can't leak. In "normal" (i.e. pre-GAE) long-running web environments, os.environ would not contain any request information, only the process startup environment. This limitation of CGIHandler should be better documented, but it's a natural consequence of its design. The os_environ and base_environ variables are provided so that subclasses with specialized needs can handle them differently, and GAE is definitely a specialized need. If someone wants to provide a GAEHandler class, great; otherwise, the documented way to run a WSGI app under GAE is the google.appengine.ext.webapp.util.run_wsgi_app function. ---------- _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7250> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|