I have been playing around with CFthread in CF9 and assumed the threads would behave the same way as in Java, where the thread doesn’t die until all the operations are completed.
I was expecting a similar behavior with CFthread as well,since I was planning to spawn a asynchronous thread and let it complete a file upload to cloud using CFHTTP. In the process I found the following after some testing and playing around:
- The CFthread basically respects the CF admin panel timeout if it’s set and kills the thread after the timeout period.
- It doesn’t respect the request timeout set using the CFsetting tag in onRequestStart or any where in the code.
- There are still certain tags that don’t obey the CFthread request timeout,they are CFFTP,CFEXECUTE, CFX tags and CFStoredProc.
So if you like start a asynchronous thread that runs for a longer time than the request timeout set in the CFadmin,please use the following ways:
- Un-check the request timeout settings in the CFadmin and then set request timeout for all other requests using the cfsetting @ onrequestStart function.
- Use either of the above tags that don’t respect the CFthread timeout.
- Use the event gateways if needed.
Just thought some one could find it useful.
Lately I have been playing around with Railo 3.1 in my Ubuntu 9 and believe me its super fast even in my single core centrino Thinkpad R50e laptop !!!!!
No offense to Adobe CF8 last time I tried to install and use Coldbox it just kept on giving me the blue screen of death.Not sure what caused the issue but my system is damn old so I can’t blame any one.
There are so many nice features in Railo which many of discussed here. Personally I like the cfdump eval and the debugging templates. Once it gets the complete BlazeDS integration done then it will be best of CFML engines out there.
I hope Railo helps CFML lead the way in web.
I won the lottery for Adobe web suite premium CS4 products conducted @ IECFUG in November 2008 although I got the license only last week. Its worth like 1700$ bugs thanks to adobe and IECFUG.
Here are the lists of products Adobe web suite has and let me know if you need to use one of the products other than Photoshop,acrobat and dreamweaver.
I will not be giving out the suite to any one for free or for money since its against adobe terms and policies it seems which I dint know of. Sorry guys for giving you false hope.