Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7902945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:38:13+00:00 2026-06-03T09:38:13+00:00

First, I set Timeout Requests after (seconds) to 20 in CF Admin. Then I

  • 0

First, I set Timeout Requests after (seconds) to 20 in CF Admin.

Then I run a cfm with a line like while(true);

The page will run way past 20 seconds, and the thread is still alive as I wrote this.

Below is a snapshot taken with Server Monitor

Thread  jrpp-3 request type - TEMPLATE REQUEST
*Template Path - D:\Projects\infiniteLoop.cfm
*Request Parameters - {}
*Request Method - GET
*Client IP address - 127.0.0.1
*Thread elapsed time - 322659 milliseconds

Is this normal?? This is CF9.0.1., developer edition.
Multi-instance setup, with JRun.

The only way to stop the infinite loop is to restart CF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:38:14+00:00Added an answer on June 3, 2026 at 9:38 am

    Request timeouts in ColdFuison don’t behave in the way you expect. They way it’s presented you’d imagine that there’s a watchdog which checks how long your request has been running and kills it on or shortly after the request timeout.
    What actually appears to happen is that only when certain tags are run does CF check whether the elapsed time of the request is over the set limit. <cfoutput> is one of the tags where it checks, which is why you often see the timeout exceeded message pointing to a cfoutput, even though you know it can’t be taking long to execute.

    <cfsetting requesttimeout="5" enableCFoutputOnly="no" />
    
    <!--- Looping with a condition <cfloop blamed --->
    <cfset request.counter=0 />
    <cfloop condition="true">
        <cfset sleep(1000) />
        <cfset request.counter=request.counter+1>
    
        <cflog file="timeout" text="#request.counter#">
    
        <cfif request.counter GT 8>
            <cfbreak>
        </cfif>
    
    </cfloop>
    
    <!--- Looping with an index, times out, naming CFLOOP as the offending tag --->
    <cfloop index="foo" from="1" to="8">
        <cfset sleep(1000) />
    </cfloop>
    
    <!--- Looping with an index, times out, naming CFOUTPUT as the offending tag --->
    <cfloop index="foo" from="1" to="8">
        <cfset sleep(1000) />
        <cfoutput>Hello</cfoutput>
    </cfloop>
    
    
    <!--- Same loop, but in script. No timeout warning at all --->
    <cfscript>
    for(foo=1;foo<=8;foo++){
        sleep(1000);
    }
    </cfscript>
    
    <!--- Same loop, now with WriteOutput() called. Still no timeout --->
    <cfscript>
    for(foo=1;foo<=8;foo++){
        sleep(1000);
        writeoutput("tick...");
    }
    </cfscript>
    

    The code above shows some of the odd behaviour of the requesttimeout. As Mark Kruger pointed out, any call to an external resource will mean no checking for timeout, and its my guess that large blocks of script which are just executing your own logic will also not be checked, leaving the next output statement to be blamed.

    If you need to trace where code is lagging and the timeout messages are pointing to the wrong place, I’d either use logging or jstack to grab stack traces from the server whilst the long-running code is running. Grab a few stack traces a few seconds apart, then run the log file through Samurai to find what the code is doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to sort results set first based on one column and then based
after first deploy with set :deploy_via, :copy for make changes in app now I'm
I want to set the first letter in each line to caps in notepad++..how
I set up timeout with jquery at scroll action. For example, after scroll wait
Once you have your first set of requirements and design done where do you
def findDistance(): first_coord = raw_input(Enter first coordinate set (format x, y): ).split(,) second_coord =
I am trying to retrieve First Unique set of 2 attributes. I am looking
first off my set up: Ubuntu Server 11 with full LAMP installed Sample of
The first index is set to null (empty), but it doesn't print the right
Is it possible to set an UISlider as first responder and set its current

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.