Created
January 24, 2012 01:23
-
-
Save boughtonp/1667153 to your computer and use it in GitHub Desktop.
Function to return request timeout for Railo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="getRequestTimeout" output="false"> | |
<cfadmin | |
type="web" password="yourwebadminpassword" | |
action="getApplicationSetting" | |
returnvariable="local.DefaultAppSettings" | |
/> | |
<cfif DefaultAppSettings.AllowURLRequestTimeout AND StructKeyExists(Url,'RequestTimeout')> | |
<cfreturn createTimespan( 0 , 0 , 0 , Url.RequestTimeout ) /> | |
</cfif> | |
<cfset local.CurAppSettings = getApplicationSettings() /> | |
<cfif StructKeyExists(CurAppSettings,'RequestTimeout')> | |
<cfreturn CurAppSettings.RequestTimeout /> | |
</cfif> | |
<cfreturn DefaultAppSettings.RequestTimeout /> | |
</cffunction> | |
<cfdump eval=getRequestTimeout() /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment