Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Nov 16, 2012 Nov 16, 2012

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?

742
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 16, 2012 Nov 16, 2012
LATEST

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

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

<cfsetting requesttimeout="2" />

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources