Thanks for your suggestions Shawn. I'll look into your timeout ideas!
Clarke
From: [email protected] [mailto:[email protected]] On Behalf Of shawn gorrell
Sent: Tuesday, December 09, 2008 10:11 AM
To: [email protected]
Subject: Re: [ACFUG Discuss] Error Handling for CFHTTP
That's an "up to you". I always set a timeout for CFHTTP calls, and that
value should be shorter than your maximum template timeout. Then you can do
up to a couple of retries, but definitely limit that number. If it is
something important, you can always trigger an email if all tries timeout.
But be sure to keep a counter on that as well, so that you're not spamming
yourself.
_____
From: Clarke Bishop <[email protected]>
To: [email protected]
Sent: Tuesday, December 9, 2008 9:58:10 AM
Subject: [ACFUG Discuss] Error Handling for CFHTTP
I am doing some CFHTTP post to another server. It?s mostly working, but I
get an error, of course, whenever the remote server is inaccessible.
I know about CFTRY/CFCATCH, but I?m wondering about what?s the best practice
for handling this type of error.
1. In CFCATCH, do I just try again?
2. Or, do I have to save the data and remember to re-submit it later?
3. Is there a better way?
Thanks for any ideas!
Clarke
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------