I am trying to use cfexecute to do a call to a local whois program.
Some of the registrars take a long time to return the data, and I
need to have my timeout set at 10 seconds. If it takes longer than
this, my code throws an exception and an ugly coldfusion error message.
So I thought I would wrap CFTRY around it (never used CFTRY before).
Here is my code:
<CFTRY>
<cfexecute name="/usr/bin/whois.pl" arguments="#domain#" timeOut="1"></cfexecute>
<CFCATCH TYPE="Any">
Timed Out!
</CFCATCH>
</CFTRY>
(note I have timeout set to 1 so I can get it to timeout more often for testing)
But I never see my "Timed Out!" string. I never see the ugly CF error message
either.
When I looked up the documentation for CFEXECUTE, it says it throws exceptions
if the program can't be found, if its not executeable, etc, but it doesn't say
anything about what it will do it the timeout value is reached!
Any ideas?
Thank you.
Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists