On Thu, Jul 29, 2010 at 03:33:14PM +0200, Louis-David Mitterrand wrote:
> On Sat, Jan 05, 2008 at 09:49:56AM -0800, Marc Mims wrote:
> > * Louis-David Mitterrand <vindex+lists-mason-us...@apartia.org> [080105 
> > 09:10]:
> > > On Sat, Jan 05, 2008 at 08:59:31AM -0800, Marc Mims wrote:
> > > > Sounds like you may be running into the same issue I was some time ago.
> > > > See if this thread helps:
> > > > http://marc.info/?l=mason&m=112491052517434&w=2
> > > 
> > > Yep, right on!
> > > 
> > > Did you find a way to deactivate KeepAlive on per-request basis?
> > 
> > No. For the project I was working on at the time (a small intranet),
> > deactivating KeepAlive for all requests was acceptable.
> > 
> > If you find a per-request solution, please post the result.
> 
> Replying to a very old thread, but here is a solution:
> 
> ## first cancel keepalive only for current connection
> $r->connection()->keepalive(Apache2::Const::CONN_CLOSE);
> ## register cleanup
> $r->pool->cleanup_register(sub {...}, $arg);

And strangely enough this works:

        $r->pool->cleanup_register(...)

but not this:

        $r->push_handlers(PerlCleanupHandler => sub {...} )

Any idea?

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to