更改 azure/ windows 服务器 2016 IIS 上的执行超时设置

Change execution timeout setting on azure/ windows server 2016 IIS

我在 VM 机器上托管了一个 Web 应用程序,Windows Server 2016 使用 IIS。其中一个响应需要 90 多秒才能执行,我似乎无法更改设置以使程序保持足够长的时间来接收响应。我已经尝试增加以下所有参数的值,但到目前为止没有任何影响。

1.) From IIS -> webapp -> advanced settings -> Limits -> Connection Timeout.

2.) From IIS -> configuration editor -> system.web/httpRuntime -> executionTimeout
                                                               -> shutdownTimeout
3.) From IIS -> webapp -> configuration  editor -> system.web.httpRuntime -> executionTimeout
                                                                          -> shutdownTimeout

4.) IIS -> Default App Pool -> Advanced Settings -> Idle Time-out
                                                -> Shutdown Timelimit
5.) IIS -> webapp -> CGI -> behaviour -> timeout

如果重要的话,VM 是从 azure 门户创建的,我使用 django 作为我的后端。谢谢!

None 这些设置适用于基于 Python 的应用程序。

如果您遵循 Microsoft 的建议,host Python apps on IIS via HttpPlatformHandler, then its requestTimeout setting 就是您要查找的内容。