but in 1.3 post_connection() is an alias for $r->register_cleanup - from what I can tell, 1.3 doesn't provide for per-connection cleanups natively. did I miss something?

1.3 has a conn_rec.pool, it just isn't exposed to mod_perl.
yeah, that's what I meant :)

i think post_connection should have used the connection pool in 1.x,
tho it only makes a difference for keepalive connections.
actually, somebody asked me about it a few months ago - something about wanting to make MySQL sessions persistent only for the lifetime of a connection, IIRC.

i supposed we should make compat method do the same as 1.3
yeah. I actually have a subclass that implements $r->connection->register_cleanup() over in 1.3 land. it will be interesting to see what people do with it in 2.0 if it's available as part of mod_perl core - it actually turns out to a bit tricky to register per-connection cleanups through the request record, since you have to keep track of stuff yourself if you only want it to run once.

anyway, more on that at ApacheCon :)

--Geoff




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to