[tbnl-devel] Threads and exceptions

Edi Weitz edi at agharta.de
Mon Sep 11 12:50:41 UTC 2006


On Mon, 11 Sep 2006 17:06:21 +0530, "Chaitanya Gupta" <mail at chaitanyagupta.com> wrote:

> I create that thread manually. What I want is that whenever a
> request is made to some URL, a string should be returned immediately
> while processing goes in Lisp. For this I create a new thread using
> mp:make-process in the handler function, and then this function
> returns the string.

Ah, OK, I see.

> From what I have seen, TBNL doesn't log any errors for the new
> thread created. I get a new debugger window in SLIME everytime
> there's any error in the new thread created. Is there anyway I can
> make TBNL log these errors too?

Not automatically, because the HANDLER-BIND which TBNL wraps around
the request handler doesn't extend to other threads.  You will have to
wrap another HANDLER-BIND around your new thread yourself which might
look pretty similar to the one in modlisp.lisp.

Cheers,
Edi.



More information about the Tbnl-devel mailing list