Skip to main content
Inspiring
November 17, 2012
Question

Is there a way to fake a timeout error for testing purposes?

  • November 17, 2012
  • 1 reply
  • 776 views

I'm writing a cftry/cfcatch to handle a RequestTimedOutException error that has happened a few times and we cannot replicate on demand.   I want to write a catch that will notify me when it does happen -- is there any way to test my code by forcing a timeout error?

This topic has been closed for replies.

1 reply

kiyomiAuthor
Inspiring
November 17, 2012

http://www.bennadel.com/blog/916-Graceful-ColdFusion-Timeout-Disaster-Recovery-Thanks-Barney-Boisvert-.htm

Found the answer -- just manually set the timeout to a very short period and kill some time

<cfsetting requesttimeout="2" />