Hi,
In daemon mode, with threads=1 :
def application(environ, start_response):
status = '200 OK'
output = "con= %s" % cgi.escape(repr(pool.connection()))
loc = threading.local()
try:
loc.i += 1
except AttributeError:
loc.i = 0
output = 'i=%s' % loc.i
response_headers = [('Content-type', 'text/html'), ]
start_response(status, response_headers)
return [output]
threading.local doesn't stay between requests. Is it normal ?
I found this with DBUtils wich doesn't reuse connection.
I missed something ?
--
William Dodé - http://flibuste.net
Informaticien Indépendant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---