I've got two simple.cfm scripts that each use cfhttp to download different files. The files are of reasonable size (~50mb) and I am running the scripts concurrently. I start them both at the exact same time, but it seems as if whichever one I start second doesn't start downloading its file until the download from the first file has finished. The scripts are below, I'm running them simultaneously, one goes from the top, the other from the bottom. As one finishes, the other starts to download, blocking the first from downloading again, and they just go back and forth like that... eventually causing "Service Temporarily Unavailable" from Tomcat on whichever was blocked. Should this be happening? I'm on bleeding edge Railo. Could this simply be a case of the server I'm trying to download from not allowing me multiple concurrent downloads or something? Thought I'd ask you guys...
File 1:
<cfsetting requesttimeout="1000000">
<cfquery datasource="clients" name="getclients">
select * from companies where status = 0
</cfquery>
<cfloop query="getclients">
<cfhttp method = "get" url="#link#" path="c:\clients\" file="#companyid#.zip"></cfhttp>
<cfquery datasource="clients">
update companies
set status = 1
where companyID = #companyID#
</cfquery>
</cfloop>
File 2:
<cfsetting requesttimeout="1000000">
<cfquery datasource="clients" name="getclients">
select * from companies where status = 0
order by companyID desc
</cfquery>
<cfloop query="getclients">
<cfhttp method = "get" url="#link#" path="c:\clients\" file="#companyid#.zip"></cfhttp>
<cfquery datasource="clients">
update companies
set status = 1
where companyID = #companyID#
</cfquery>
</cfloop>