First page Back Continue Last page Overview Graphics
The last phase
Actually, exists only in mod_perl and not in Apache itself
Happens after the client is disconnected, but before request object is destroyed
Used to cleanup anything after the request (temp files, locks, etc)
While the client won’t have to wait for this, Apache will not re-queue the Perl interpreter until it finishes!
CAVEAT: The cleanup handler may not complete on server shutdown/graceful restart since Apache will kill the registered handlers via SIGTERM, before they had a chance to run or even in the middle of its execution. See: http://marc.theaimsgroup.com/?t=106387845200003&r=1&w=2 http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=106427616108596&w=2