Re: PerlCleanupHandler in modperl 2

2006-03-27 Thread Geoffrey Young
we should keep this on-list :) Clinton Gormley wrote: >>it ought to work, but it should be setting a per-server cleanup instead of a >>per-request cleanup. see below. >> > > > Doh! :) > > > >>basically cleanups are performed when memory allocated for different parts >>of the server lifecyc

Re: PerlCleanupHandler in modperl 2

2006-03-25 Thread Clinton Gormley
> it ought to work, but it should be setting a per-server cleanup instead of a > per-request cleanup. see below. > Doh! > basically cleanups are performed when memory allocated for different parts > of the server lifecycle is destroyed. so, httpd allocates memory for the > server, per-config

Re: PerlCleanupHandler in modperl 2

2006-03-25 Thread Geoffrey Young
Clinton Gormley wrote: > Am I missing something here. Can PerlCleanupHandlers be setup at > startup with : > > Apache2::ServerUtil->server->push_handlers(PerlCleanupHandler=>\&cleanup); > > I have successfully got a cleanup handler working using: > > - PerlCleanupHandler My::Package (in th

PerlCleanupHandler in modperl 2

2006-03-25 Thread Clinton Gormley
Am I missing something here. Can PerlCleanupHandlers be setup at startup with : Apache2::ServerUtil->server->push_handlers(PerlCleanupHandler=>\&cleanup); I have successfully got a cleanup handler working using: - PerlCleanupHandler My::Package (in the config file), or - $r->push_handler