Thread local storage only lasts for life of a request.
------------------------------------------------------
Key: MODPYTHON-253
URL: https://issues.apache.org/jira/browse/MODPYTHON-253
Project: mod_python
Issue Type: Bug
Components: core
Affects Versions: 3.3.1
Reporter: Graham Dumpleton
The mod_python code creates a fresh Python thread state object for every
request, with it being destroyed at end of the request. This thread state
object is where thread local storage is kept. As a result, thread local storage
isn't really thread local storage and is instead request local storage for that
thread. This can be detrimental to performance for any web framework which
relies on being able to cache stuff in thread local storage for use at any time
in life time of the process. Worst case will see that data being recreated on
every request, which could cause excessive overhead on process/application if
creating the data is time consuming.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.