James Ponder <[EMAIL PROTECTED]> writes:

> On Wed, Nov 13, 2002 at 08:43:05PM -0500, Jeff Trawick wrote:
> > The recommended approach is to register a cleanup with the conn_rec
> > pool.  When the connection goes away, so does the conn_rec pool, and
> > your cleanup will then run.
> 
> Does that place any restrictions on what can be done in the cleanup code,
> for example is there any memory that might have vanished as I'm trying to
> do things?  (I can't actually think what I may want to do on a connection
> close apart from use the IP/socket information - presumably that's at least
> still available)

Cleanups are able to reference storage allocated from the pool, since
the storage isn't released until after the last cleanup has been run.
So the IP/socket information is still available.

I don't know what the rules are for what you can do in a cleanup.  I
don't think you'd want to do anything that would cause another cleanup
to be registered.  Other than that, I dunno.

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to