<p>As the title mentions, I have a timeout callback handler on an ajax call, and I want to be able to test that condition but nothing is coming to mind immediately on ways I can force my application to hit that state, any suggestions?</p>

[{'answer_id': 23131, 'author': 'Andy', 'author_id': 1993, 'author_profile': 'https://Stackoverflow.com/users/1993', 'pm_score': 2, 'selected': False, 'text': '<p>You could always run a server-side script that keeps running for a period of time. \nFor example:</p>\n\n<pre><code>&lt;?php\n   sleep(10); //sleep for 10 seconds.\n   print "This script has finished.";\n&gt;\n</code></pre>\n'}, {'answer_id': 23199, 'author': 'dragonmantank', 'author_id': 204, 'author_profile': 'https://Stackoverflow.com/users/204', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://developer.yahoo.com/yui/connection/" rel="nofollow noreferrer">YUI Connection Manager</a> allows you to introduce slowdown in your Javascript to test AJAX against latency.</p>\n'}, {'answer_id': 23227, 'author': 'Jason Bunting', 'author_id': 1790, 'author_profile': 'https://Stackoverflow.com/users/1790', 'pm_score': 3, 'selected': True, 'text': '<p>First off, I think you need to be clearer in your question - what technology are you using and where is this process that is timing out - server-side or client-side?</p>\n\n<p>If you want to have the server-side code take a long time and you are using .NET, place this line in the method you call server-side:</p>\n\n<pre><code>System.Threading.Thread.Sleep(timeoutMilliseconds);\n</code></pre>\n\n<p>As long as you use a number sufficient so that your client-side code assumes the server has timed out, you should be good.</p>\n'}]
['https://Stackoverflow.com/questions/23124', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2272/']