>- see footer for list info -< Simon, because your demo code showed that cfsetting worked with cfcs I looked harder at my own code and noticed that it's *cfdocument* that's throwing the timeout error and *not* the cfc that calls cfdocument. Error message: "The content of this document process takes more than 60000 milliseconds to process."
So my question still stands although my finger is pointing at cfdocument rather than cfcs. There is no timeout attribute for cfdocument. Gary. On Wed, Dec 23, 2009 at 9:30 AM, Simon Baynes <[email protected]> wrote: > >- see footer for list info -< > Thanks the Xmas shopping was hell but all done now! > > I am not getting the same results as you:- > > I created this (admittedly crap, but does the job) CFC to illustrate the > point:- > > Slow.cfc > <cfcomponent> > <cffunction name="timeOut" access="public" output="false" > returntype="void"> > <cfargument name="nOrder" type="numeric" required="true" /> > <cfscript> > var iTemp = 0; > var oTemp = false; > </cfscript> > <cfloop from="1" to="#10 ^ arguments.nOrder#" index="iTemp"> > <cfset oTemp = createObject("component", > "Slow")> > </cfloop> > </cffunction> > </cfcomponent> > > > If I set the server request timeout to 2 seconds then the following > index.cfm will timeout:- > > <cfinvoke component="Slow" method="timeOut"> > <cfinvokeargument name="nOrder" value="3"/> > </cfinvoke> > > However, if I modify it to look like so it doesn't timeout:- > > <cfsetting requesttimeout="100"> > <cfinvoke component="Slow" method="timeOut"> > <cfinvokeargument name="nOrder" value="3"/> > </cfinvoke> > > So I think your hypothesis is incorrect. Maybe you could post some > code and we can help you crack it? > > Merry Christmas! > > Simon Baynes > www.simonbaynes.com > Free online storage you can access anywhere:- > http://www.simonbaynes.com/getsugarsync > LinkedIn profile:- http://www.linkedin.com/in/simonbaynes > > > > On Wed, Dec 23, 2009 at 12:37 AM, Gary <[email protected]> wrote: > >>- see footer for list info -< > > Jason, that's a good idea. Then I'd join the thread after the parent cfm > > script waits for it to complete? I've not used threads before but I will > try > > it out. > > > > Simon, I've not tried storing cfcs in memory, I went through of stage of > > spelling out every argument with cfinvoke because it's much easier to > > understand the args when you revisit the code a few months later or pass > it > > on to other devs. I hope your Christmas shopping went well? Must have > been > > packed - yet you still manage to respond to emails! :-) > > Thanks, > > Gary. > > > > > > On Tue, Dec 22, 2009 at 6:04 PM, Jason Haritou < > [email protected] > >> wrote: > > > >> >- see footer for list info -< > >> Have you thought about running the cfc as a thread? > >> > >> On Dec 22, 2009 12:51 PM, "Simon Baynes" <[email protected]> wrote: > >> > >> >- see footer for list info -< > >> > >> Gary, > >> In my experience cfsetting with requesttimeout in the calling cfm page > does > >> definitely allow cfc methods to run longer than the default timeout. The > >> only thing you might be doing differently from me is using cfinvoke > which I > >> can't remember the last time I used. I usually initialise my cfcs as > >> persistent objects in memory. I would fire up my PC and check for you > but I > >> am on Bond Street Xmas shopping (soul destroying). I suggest trying a > few > >> more permutation around that and see if it helps! > >> > >> > >> Simon Baynes > >> www.simonbaynes.com > >> Free online storage you can access anywhere:- > >> http://www.simonbaynes.com/getsugarsync > >> LinkedIn profile:- http://www.linkedin.com/in/simonbaynes > >> > >> -----Original Message----- > >> From: Gary <[email protected]> > >> Date: Tue, 22 Dec 2009 01:30:43 > >> To: Coldfusion Development<[email protected]> > >> Subject: [CF-Dev] How to increase timeout for a CFC? > >> > >> >- see footer for list info -< > >> Hi. I've got a question about invoking a CFC that takes longer to > process > >> than the CF Admin default timeout. How can I make an exception for this > >> specific CFC and increase the timeout value please? > >> > >> Adding a timeout="90" attribute to the cfinvoke tag casues an error > because > >> it's only meant for CFCs running as a web service. Adding <cfsetting > >> requesttimeout="90"> to the CFC doesn't work either and adding that to > the > >> parent cfm file makes no difference to the CFC as it doesn't inherit the > >> timeout setting. > >> > >> Thanks for any ideas in advance. Merry Christmas! > >> > >> Gary. > >> > >> P.S. If you're wondering why a CFC needs to take so long to run, well, > it's > >> generating a very, very long PDF to present to the user. I can't chop it > >> into several PDFs for various usability reasons. > >> _______________________________________________ > >> > >> For details on ALL mailing lists and for joining or leaving lists, go to > >> http://list.cfdeveloper.co.uk/mailman/listinfo > >> > >> -- > >> CFDeveloper Sponsors:- > >> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >> >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> < > http://www.gradwell.com/> -< > >> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > >> > >> _______________________________________________ > >> > >> For details on ALL mailing lists and for joining or leaving lists, go to > >> http://list.cfdeveloper.co.uk/mailman/listinfo > >> > >> -- > >> CFDeveloper Sponsors:- > >> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >> >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> < > http://www.gradwell.com/> -< > >> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > >> _______________________________________________ > >> > >> For details on ALL mailing lists and for joining or leaving lists, go to > >> http://list.cfdeveloper.co.uk/mailman/listinfo > >> > >> -- > >> CFDeveloper Sponsors:- > >> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >> >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> < > http://www.gradwell.com/> -< > >> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your > help -< > >> > > _______________________________________________ > > > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > > > -- > > CFDeveloper Sponsors:- > >>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >>- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -< > >>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > > > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< > _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
