Use server.scripttimeout to reduce ASP unexpected errors and disable the service

Source: Internet
Author: User
server| error When we execute some programs, such as the recursion of a forum, an ASP program often executes an error outside of the accident. The incidence of such accidents is very low,

But when it does, it causes an ASP code to generate countless HTML or a large amount of server resources, resulting in reduced server efficiency

to paralysis. This type of error is generally a dead loop until the script finishes execution to end this nightmare error.

Solutions to such problems include:
-Don't use unstable code, but it's hard to determine how much code is stable. Like my forum system, which uses the

Recursion does not seem to have the slightest error, but at times it makes an error happen.
-If you can't use the above method to make sure that the code is secure and stable, you can only shorten the execution time of the site's script, such as

The server.scripttimeout is set to 1, that is, the execution time is only 1 seconds. This will minimize the error duration of the code. Don't think

Timeout can only be more than 20, in fact, set to 20 or the following line:



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.