My favorites | Sign in
Project Home Downloads Wiki
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 120: Thread local data not preserved beyond lifetime of request.
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  Graham.Dumpleton@gmail.com
Closed:  Nov 2009


Sign in to add a comment
 
Project Member Reported by Graham.Dumpleton@gmail.com, Dec 22, 2008
When any sub interpreter other than first, ie., anything other than %{GLOBAL}, for 
WSGIApplicationGroup, any thread local data is not preserved beyond life of a specific request.

This is because mod_wsgi internally creates a new thread state object for each request and thread 
local data is stored in the thread state object. The code should cache the thread state object and 
reuse it between requests for the same thread.

Note that at the moment, that thread local data is thrown away at end of request, may mean that 
when switch to preserving it, may highlight problems in applications which do not clean data out 
themselves. For example, memory usage may increase over time.
Mar 4, 2009
Project Member #1 Graham.Dumpleton@gmail.com
Changes made in revision 1213 of mod_wsgi subversion trunk for 3.0.
Status: Started
Labels: Milestone-Release3.0
Nov 21, 2009
Project Member #2 Graham.Dumpleton@gmail.com
Version 3.0 of mod_wsgi now released with this change.
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting