So the problem seems to be in READ-INITIAL-REQUEST-LINE where HANDLER-CASE* lets MAYBE-INVOKE-DEBUGGER handle the condition before the cases of the HANDLER-CASE.<div><br></div><div>I may well be missing something, but it seems like mabye HANDLER-CASE* should be changed as in the following patch so MAYBE-INVOKE-DEBUGGER is only invoked for unhandled conditions.</div>
<div><br></div><div>-Peter</div><div><br></div><div><div>--- conditions.lisp<span class="Apple-tab-span" style="white-space:pre"> </span>2010-08-23 16:29:48.000000000 -0700</div><div>+++ fixed-conditions.lisp<span class="Apple-tab-span" style="white-space:pre"> </span>2010-08-23 16:43:26.000000000 -0700</div>
<div>@@ -112,8 +112,8 @@</div><div> </div><div> (defmacro handler-case* (expression &rest clauses)</div><div> "Like HANDLER-CASE, but observes *CATCH-ERRORS-P*."</div><div>- `(handler-case (with-debugger ,expression)</div>
<div>- ,@clauses))</div><div>+ `(with-debugger</div><div>+ (handler-case ,expression ,@clauses)))</div><div> </div><div> (defun get-backtrace ()</div><div> "Returns a string with a backtrace of what the Lisp system thinks is</div>
</div><div><br></div><div><div><br><div class="gmail_quote">On Sun, Aug 22, 2010 at 11:27 PM, Hans Hübner <span dir="ltr"><<a href="mailto:hans.huebner@gmail.com">hans.huebner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Aug 23, 2010 at 07:26, Peter Seibel <<a href="mailto:peter@gigamonkeys.com">peter@gigamonkeys.com</a>> wrote:<br>
> If I set *CATCH-ERRORS-P* to NIL, is it expected/desired behavior that the<br>
> timeout-errors generated when (I think) the client disconnects without<br>
> making a full request or some such, will land you in the debugger?<br>
<br>
</div>This is a bug. Timeouts that occur while Hunchentoot is waiting for a<br>
new request should always be ignored. Timeouts that occur when a<br>
partial request has been request has been received _should_ be<br>
intercepted, though, as those are not part of a normal exchange.<br>
<br>
I've added the issue to our bug tracker.<br>
<br>
-Hans<br>
<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Peter Seibel<br><a href="http://www.codequarterly.com/" target="_blank">http://www.codequarterly.com/</a><br>
</div></div>