cfthread and cfhttp
Whats the default timeout period for a fire and forget cfthread in cf9? from my tests and monitoring the server, the threads gets killed after it hits the request timeout period mentioned in the admin.
Is this the expected behaviour?
I need to know this since I have this project where I need to post easily more than 1gb file over cfhttp, Whenever I use the cfhttp inside a thread, the cfhttp timeouts aren't respected any more but only the threads timeout period from admin.
thank u for ur help
Here are the codes
timer.cfm
<cfsetting requesttimeout="10000000000000">
<cfthread action="sleep" duration="600000">
</cfthread>index.cfm
<html>
<body>
<p>threadcfbookclub</p>
<cfthread action="run" name="testhread_#now()#">
<cftry>
<cfhttp timeout="60" throwonerror="true" url="http://localhost/thread/timer.cfm"
/>
<cfcatch type="any">
<cfrethrow>
</cfcatch>
</cftry>
<!---<cfthrow type='test' message="test">--->
</cfthread>
</body>
</html>app.cfc
component output="false"
{
this.name = "thread";
}
Thx
Al
