[Mono-dev] (Nevermind) Asp.net thread abort issue
Gonzalo Paniagua Javier
gonzalo at ximian.com
Sun Oct 9 16:48:01 EDT 2005
On Sun, 2005-10-09 at 08:04 -0400, Joshua Tauberer wrote:
> Gonzalo Paniagua Javier wrote:
> > Anyway, if you ever decide to catch ThreadAbortException anywhere in the
> > asp.net pipeline, bear in mind that it's used also when the configured
> > timeout is reached.
>
> The timeout for what?
For the maximum request processing time set in machine.config/web.config
(httpRuntime/executionTimeout).
>
> This ThreadAbortException business is quite something to get a handle
> on. For instance, if you abort the thread within a method called by
> reflection, when Invoke() finishes the exception is a
> TargetInvocationException and not a ThreadAbortException, confusing my
> catch clauses higher up. Is that the right behavior? It also doesn't
> do the usual automatic re-throwing of the ThreadAbortException after
> catch clauses, so the thread goes on if the exception is caught at any
> point.
Yes, the behavior is right. However, a ThreadAbortException should be
rethrown after the finally clause, even when catched, if ResetAbort() is
not called.
-Gonzalo
More information about the Mono-devel-list
mailing list