繁体   English   中英

如何在 IIS windows 服务器 2019 中增加 post 请求的加载时间

[英]How to increase loading time of post request in IIS windows server 2019

I have deployed Django on a windows server using IIS Windows Server 2019. When I submit the form, the time limit of the backend process is 100 Seconds, But after 40 seconds, IIS server responds with error 500. How can I increase this loading time IIS。

在 IIS 中,您可以增加超时以给应用程序更多时间来加载资源。

  • 打开 Internet 信息服务 (IIS) 管理器。

  • 展开本地计算机节点,展开Web站点,右键单击相应的Web站点,指向管理Web站点,单击高级设置。

  • 在高级设置 window 中,展开连接限制,更改连接超时字段中的值,然后单击确定。 在此处输入图像描述

  • 打开 IIS。

  • 在左侧,选择“应用程序池”

  • 在右侧,右键单击此应用程序池和 select 高级设置。

  • 在高级设置中,增加“空闲超时(分钟)”。 在此处输入图像描述

在 web.config 中添加这个

<system.web>
   <httpRuntime executionTimeout="180" />
</system.web>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM