Adam Cameron
<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.Adam Cameron
<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.Adam Cameron
Andreas
07/19/2022, 12:54 PMzackster
07/19/2022, 1:00 PMzackster
07/19/2022, 1:00 PM