Request timeout from ASP.NET Core app on IIS

前端 未结 1 1733
慢半拍i
慢半拍i 2021-01-11 20:29

I make a web request to a third-party api from my ASP.NET Core application.

  1. When app is running alone itself, request succeeds.
  2. When app is running i
相关标签:
1条回答
  • 2021-01-11 20:44

    IIS behavior is driven by the web.config, I have configured to deal with request < 20 min specifying requestTimeout="00:20:00":

    <aspNetCore
      requestTimeout="00:20:00"
      processPath="%LAUNCHER_PATH%"
      arguments="%LAUNCHER_ARGS%"
      stdoutLogEnabled="false"
      stdoutLogFile=".\logs\stdout"
      forwardWindowsAuthToken="false">
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="staging" /> <!-- value could be "development", "staging" or "production"-->
      </environmentVariables>
    </aspNetCore>
    
    0 讨论(0)
提交回复
热议问题