Hi,
I have a cfhttp call in a cfc that from time to time receives a connection
timeout. I'd like to just retry the call again, but not sure of best way to
start the call over. I actually don't want to start the whole thing over,
just re-try the cfhttp call if it receives a connection timeout.
... Che
-Original Message-
From: Casey Dougall [mailto:ca...@uberwebsitesolutions.com]
Sent: Thursday, November 18, 2010 1:39 PM
To: cf-talk
Subject: cfhttp connection timeout - best way to loop or re-try?
Hi,
I have a cfhttp call in a cfc that from time to time receives a connection
timeout
Something like...
cfset success =
cfset attempts = 0
cfloop condition=success is not 1 and attempts lt 4
cfset attempts = attempts + 1
cftry
cfhttp ... timeout=60 ...
cfset success = 1
cfcatch
cfset success = 0
/cfcatch
/cftry
/cfloop
On Thu, Nov 18,
On Thu, Nov 18, 2010 at 1:47 PM, John M Bliss bliss.j...@gmail.com wrote:
fset success =
cfset attempts = 0
cfloop condition=success is not 1 and attempts lt 4
cfset attempts = attempts + 1
cftry
cfhttp ... timeout=60 ...
cfset success = 1
cfcatch
cfset
4 matches
Mail list logo