[plt-scheme] Cleanup on servlet timeout

Henk Boom lunarc.lists at gmail.com
Sat Jul 26 00:04:49 EDT 2008


I'm using the timeout dispatcher to stop responses which take too long
to compute. Normally when I throw an exception, the sqlite bindings
ensure that I release the database and I use dynamic-wind to release
my own locks I have claimed. However, when the request times out this
cleanup doesn't happen, I'm guessing because the thread is terminated
in a harsher way. Is there a way I could throw an exception in the
thread after a timeout instead of simply killing it?

Thanks,
    Henk



More information about the plt-scheme mailing list