Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
345 views
in Technique[技术] by (71.8m points)

django - 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 of IIS.

question from:https://stackoverflow.com/questions/66062070/how-to-increase-loading-time-of-post-request-in-iis-windows-server-2019

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In IIS, you can increase timeout to give application more time to load resources.

  • Open Internet Information Services (IIS) Manager.

  • Expand the local computer node, expand Web Sites, right-click the appropriate Web site, point to Manage Web Site, click Advanced Settings.

  • In the Advanced Settings window, expand Connection Limits, change the value in the Connection time-out field, and then click OK. enter image description here

  • Open IIS.

  • On the left side, select"Application Pools"

  • On the right side,right-click this application pool and select Advanced Settings.

  • In the advanced settings, increase "Idle Time-out (minutes)". enter image description here

Add this in web.config

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...