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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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?
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:
As long as you use a number sufficient so that your client-side code assumes the server has timed out, you should be good.