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.
Carton of Milk – 2$, Nokia N85 – 300$, the joy when the phone works after dropping the N85 in milk – priceless
I really wish I didn’t do this mistake of trying to save 2$ milk carton from falling down and dropping my N85 in to my cup of milk when I was preparing my coffee while I was talking to my bro at the same time.
I did the usual stuff that I usually do when my equipments has water damage like completely dismantle it and let it dry for a day and try it back again. Most of the time it has worked for me and since the phone is from Nokia, the percentage of survival is little higher then other manufactures.
Multitasking has its share of failures like this, may be that’s why apple decided not to include Multitasking in ipad.
Until then I will try to resurrect my old HTC SDA phone which had suffered its own 30 feet drops, water damage and living in freezer for an hour
and btw it worked all the time without issues. I decided to replace it only when its charger connection got loose which made it harder for me to charge the device.
I hope the N85 can also survive all the sufferings as good as HTC SDA has suffered in my hands. It has gone through a 20 feet drop and made out alive so lets see if it can survive the water damage.
Now I will have to wait for another 24 hrs to figure out if my phone can be revived or not.
Please email/im me if you need to contact me before that.
Yet another quake as I write this post. It shud be easily a 4 and we got after shocks.
-Updated April 4, 2010 @ 7.46PM
Well the phone is working perfectly as of this moment without issue. Thank you Nokia.
Carton of Milk – 2$, Nokia N85 – 300$, the joy when the phone works after dropping the N85 in milk – priceless