我有一个接受大文件(最大 500Mb)的 API。直到最近它还在发挥作用。现在我不断收到一个Error 500.0 - Internal Server Error. 警告消息指出C:\inetpub\Scripts\python.exe - The FastCGI process exceeded configured request timeout。大约 10 分钟后会出现此情况。
以前,CGI 和 IIS 的超时设置为大约 20 分钟,但自从我收到此错误消息后,我荒谬地提高了超时,大约 10 分钟后它仍然发生。
在 IIS 的 CGI 下,我将超时设置为 1 小时 30 分。
在 IIS 的 web.config 中,我有:
<system.web>
<httpRuntime executionTimeout="12250" maxRequestLength="500000" />
<customErrors mode="Off" />
</system.web>
Run Code Online (Sandbox Code Playgroud)