My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Nested CFLOCK tags
Nesting CFLOCK tags may cause a deadlock, which will crash your server.

Type: bugprone
Severity: (5)

Incorrect example
<cflock type="application" ...>
 ...
 <cflock type="session" ...>
   ...
 </cflock>
</cflock>

Resolution

Don't nest <cflock> tags
Explanation

Nesting cflock tags can cause a deadlock. This occurs when one lock is waiting for the other to release. Suppose we had another section of code that locked the session, and wanted to lock the application, running concurrently this would cause what is known as a deadlock. If a deadlock occurs on your server it will cause all requests that require the lock to hang until the timeout periods occur. This could potentially build up a lot of concurrent requests on your web server.

Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement