[plt-scheme] Cleanup on servlet timeout

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Jul 28 14:39:43 EDT 2008

At Mon, 28 Jul 2008 13:26:13 -0500, "Robby Findler" wrote:
> On Mon, Jul 28, 2008 at 1:25 PM, Henk Boom <lunarc.lists at gmail.com> wrote:
> > On 2008-07-28, Robby Findler <robby at cs.uchicago.edu> wrote:
> >> I see. Not knowing enough about databases, I wonder if the sqlite
> >>  library can integrate with custodian-shutdown-all so that it
> >>  (gracefully) closes the database connection when the custodian gets
> >>  shutdown? Does that make sense?
> >
> > I think it makes sense. The only way I see to do that is with the C
> > function scheme_add_managed. Is there a way to do this from scheme,
> > when using the new ffi?
> 
> I believe that new custodian cleanup actions can only be added at the
> C layer,

That's correct. It's an unsafe operation and normally makes sense when
you're already using the FFI, so it's left to the FFI.

Matthew



Posted on the users mailing list.