[hunchentoot-devel] [PATCH] debugging-acceptor breaks REDIRECT (among other things)

Travis Cross tc at travislists.com
Wed Nov 25 09:08:46 UTC 2009


Greetings,

The invoke-process-request-with-error-handling method on the
debugging-acceptor gets a bit overzealous with catching unwinds.
Because we throw to 'handler-done in various places, there are many
unwinds that are not errors.  In particular, REDIRECT throws, as does
anything that calls ABORT-REQUEST-HANDLER (e.g. authorization-required
replies, http-forbidden, http-not-found, etc.).

The cleanest solution is to save a continuation before dropping into the
debugger, then check to see whether we have a continuation to call
during unwind.

Patch is attached.

(Thanks for providing a partial replacement for the old
*catch-errors-p*, by the way.)

Cheers,

-- 
Travis Cross
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debugging-acceptor-throw-fix.diff
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20091125/d33c939a/attachment.ksh>


More information about the Tbnl-devel mailing list