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.
try{use xp;}catch(n crashes;slow;){use Ubuntu;}
Well the title explains it all. After using my IBM Thinkpad R50e for almost 3.7 years after
I don’t hate XP but the software’s in this current world has made my laptop work like a 6 moths old Netbook.
All these have forced me to finally try out Ubuntu 9.04 OS instead of XP. All though there was a pretty big learning curve to use Ubuntu but it has been fruitful so far with all my required software running fine without any performance hit. I still have to figure out how to fix the Flash full screen lag issue with Ubuntu 9.04 and my system expect that everything looks gr8.
If you have enough patience,time and old laptop u still want to use please try out Ubuntu out which has gr8 UI.
Thanks to eclipse, cfeclipse, mysql and railo CF engine for their gr8 open source products.