Quick Q that I will ask and then go off and try to...
# lucee
a
Quick Q that I will ask and then go off and try to answer, but in case anyone knows off the top of their head.
<cfsetting requesttimeout="0">
for CF this is actively documented as meaning "If you specify 0 as the value, timeout is disabled for the request." (ref: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-r-s/cfsetting.html). Lucee's docs (https://docs.lucee.org/reference/tags/setting.html) do not mention this special meaning at all. Can anyone confirm that the behaviour exists, and it's a documentation oversight, or if it's a difference in behaviour between CF and Lucee. Please do not waste your time investigating this... I can do that and I don't want ppl doing my work for me. Just wondering if anyone already knows. Cheers. I will report back with my findings shortly anyhow. Cheers.
Confirmed... it's just a docs shortfall. This code demonstrates:
Copy code
<cfif URL.keyExists("timeout")>
    <cfsetting requesttimeout="#URL.timeout#">
</cfif>

<cfflush interval="16">
<cfloop index="i" from="0" to="60">
    <cfoutput>#i##repeatString(" ", 16)#<br></cfoutput>
    <cfset sleep(1000)>
</cfloop>
I have my overall request timeout set to 30sec, and if I pass
timeout=0
on the URL, this code runs to completion. As control experiments I also passed different values both less and greater than 30 (but less than 60) and the reqs timed out as expected. I'll see how awkward it is to update yer docs, and if it's easy, I will do so.
a
Thx for the quick update!
z
woot, just need a CLA sign off @Adam Cameron and I'll merge it
✅ 1
link on the PR