I've been chasing down a CFLOOP timeout error in one of our apps that escaped our rewrite project. After searching through code for 3 weeks, var scoping a bunch of CFCs and wading through a ton of business logic I think I found the culprit.

Of course, it would have to have been in the last file in my list.

Primary Suspect
view plain print about
1<cfloop from="1" to="99999" index="x" >
2    
3    <cfset a = a + someQueryValue />
4    <cfset b = b + anotherQueryValue />
5    
6    <cfif ( a gt c ) or ( b gte yetAnotherQueryValue )>
7        
8        <cfset x = 99999 />
9        <cfbreak />
10        
11    </cfif>
12
13</cfloop>

Book 'em Danno!