Permalink
Browse files

Added a 15 minute requesttimeout on the directory scan

  • Loading branch information...
1 parent 9ad2420 commit 8c5bda26a54d3e9d277ad405104e1120c8866a57 @NathanStrutz committed Jan 26, 2012
Showing with 41 additions and 40 deletions.
  1. +41 −40 directory.cfm
View
@@ -1,41 +1,42 @@
-<cfparam name="url.directory" default="#expandPath('/')#" />
-
-<cf_layout title="Directory Listing" directory="#url.directory#">
-
-<!--- if it's just a file check, forward to the appropriate place --->
-<cfif fileExists(url.directory)>
- <cflocation url="file.cfm?file=#url.directory#" />
-</cfif>
-
-<cfset complexityReport = application.complexity.getDirectoryComplexityReport(url.directory) />
-<cfset dirReport = complexityReport.getDirectoryReport() />
-
-
-<cfoutput><h2>Directory #url.directory#</h2></cfoutput>
-<table class="dirReport">
- <thead>
- <tr>
- <td>Path</td>
- <td>Complexity</td>
- </tr>
- </thead>
- <tbody>
- <cfoutput query="dirReport">
- <tr>
- <td><cfif type EQ "file"><a href="file.cfm?directory=#url.directory#&file=#path#" class="mono">#relativePath#</a><cfelse>#relativePath#</cfif></td>
- <td align="right"><cfif complexity>#complexity#<cfelse>--</cfif></td>
- </tr>
- </cfoutput>
- </tbody>
-</table>
-
-
-<script type="text/javascript">
- $("table.dirReport tbody tr").colorFade(function(){
- return parseInt($(this).find("td:last").html());
- }, function(){
- return $(this);//.find("td:last");
- });
-</script>
-
+<cfparam name="url.directory" default="#expandPath('/')#" />
+<cfsetting requesttimeout="900" />
+
+<cf_layout title="Directory Listing" directory="#url.directory#">
+
+<!--- if it's just a file check, forward to the appropriate place --->
+<cfif fileExists(url.directory)>
+ <cflocation url="file.cfm?file=#url.directory#" />
+</cfif>
+
+<cfset complexityReport = application.complexity.getDirectoryComplexityReport(url.directory) />
+<cfset dirReport = complexityReport.getDirectoryReport() />
+
+
+<cfoutput><h2>Directory #url.directory#</h2></cfoutput>
+<table class="dirReport">
+ <thead>
+ <tr>
+ <td>Path</td>
+ <td>Complexity</td>
+ </tr>
+ </thead>
+ <tbody>
+ <cfoutput query="dirReport">
+ <tr>
+ <td><cfif type EQ "file"><a href="file.cfm?directory=#url.directory#&file=#path#" class="mono">#relativePath#</a><cfelse>#relativePath#</cfif></td>
+ <td align="right"><cfif complexity>#complexity#<cfelse>--</cfif></td>
+ </tr>
+ </cfoutput>
+ </tbody>
+</table>
+
+
+<script type="text/javascript">
+ $("table.dirReport tbody tr").colorFade(function(){
+ return parseInt($(this).find("td:last").html());
+ }, function(){
+ return $(this);//.find("td:last");
+ });
+</script>
+
</cf_layout>

0 comments on commit 8c5bda2

Please sign in to comment.