logo       

Re: $m->abort and <%cleanup>: msg#00218

web.mason.user

Subject: Re: $m->abort and <%cleanup>

On Sun, 24 Aug 2003, Jonathan Lang wrote:

> When I use $m->abort, does the <%cleanup> block get executed? I'm
> attempting to emulate "server is busy" functionality by incrementing a
> cached variable in the page's <%init> block and decrementing it in the
> <%cleanup> block; if I call $m->abort(409) whenever the variable reaches
> 5, will I need to manually decrement the variable, or will Mason do it for
> me?

Cleanup blocks are only executed if the component exits normally.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise