zoukankan      html  css  js  c++  java
  • How to increase timeout for your ASP.NET Application ?

    How to increase timeout for your ASP.NET Application ?

    原文链接:https://www.techcartnow.com/increase-timeout-asp-net-application/

    对于application主要有3种方式,对于sql主要有2种方式

    A. executionTimeout attribute of httpRuntime element (web.config):

    ASP.NET will timeout the request, if it is not completed within “executionTimeout” duration value. And System.Web.HttpException: Request timed out exception will be thrown by ASP.NET Application.

    executionTimeout attribute of httpRuntime element (in the web.config) can be used to change the request timeout duration for ASP.NET Application. executionTimeout  value is specified in seconds. Default value is 110 seconds.

    B. timeout attribute of sessionState element (web.config):

    If the user remains idle for duration specified in timeout attribute vaule of sessionState element (in web.config), then his session will expire.

    timeout attribute of sessionState element (in the web.config) can be used to change session timeout duration for ASP.NET Application. timeout value is specified in minutes. Default value is 20 minutes.

    C. Idle Time-out Settings for an Application Pool (IIS):

    If the worker process remain idle for duration specified in Idle Time-out Settings for an Application Pool , then worker process will shut down.

    Idle Time-out Settings for an Application Pool value is specified in minutes. The default value for Idle Time-out Settings for an Application Pool is 20 minutes.

    IIS Application Poll - Idle timeout

    D. SqlCommand.CommandTimeout (SQL SERVER):

    ADO.NET will wait for duration specified in SqlCommand.CommandTimeout before cancelling the query.

    SqlCommand.CommandTimeout value is specified in seconds.  The default value of  SqlCommand.CommandTimeout is 30 seconds.

    E. SqlConnection.ConnectionTimeout:

    If connection is not opened within the duration specified in SqlConnection.ConnectionTimeout, timeout exception will be thrown.

    SqlConnection.ConnectionTimeout value is specified in seconds.  The default value of  SqlCommand.CommandTimeout is 15 seconds.

  • 相关阅读:
    元学习Meta Learning/Learning to learn
    TRAINING A CLASSIFIER训练分类器(pytorch官网60分钟闪电战第四节)
    NEURAL NETWORKS神经网络(pytorch官网60分钟闪电战第三节)
    AUTOGRAD: 自动分化(pytorch官网60分钟闪电战第二节)
    WHAT IS PYTORCH?(pytorch官网60分钟闪电战第一节)
    windows找不到gpedit.msc
    The “freeze_support()“ line can be omitted if the program is not going to be frozen to produ
    torch.mul() 和 torch.mm() 的区别
    vue面试题(2)
    JS输出题练习
  • 原文地址:https://www.cnblogs.com/dufu/p/9232531.html
Copyright © 2011-2022 走看看