quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Gallacher <jg.li...@sympatico.ca>
Subject FileSession - new cleanup code
Date Thu, 21 Apr 2005 01:08:55 GMT
Hi Nicolas,

Attached is a patch with the new cleanup code.

1) do_cleanup() now just registers filesession_cleanup() to run at the 
end of the request.

2) filesession_cleanup() does the actual cleanup.

3) filesession_cleanup implements the grace_period idea to avoid 
potential race and deadlock conditions.

4) filesession_cleanup() uses a lockfile to ensure only one instance of 
the cleanup code runs at any given time.

Regards,
Jim

Mime
View raw message