title: how set the request timeout in asp .net core 3.1
body: <ul>
  <li>From the Visual Studio select Create a new project. Select ASP.NET Core 3.1</li>
  <li>Publish and Host in IIS</li>
  <li>Increase upload file size this code :</li>
  </ul>
  <pre class="lang-cs prettyprint-override"><code>public void ConfigureServices(IServiceCollection services)
  {
      services.Configure&lt;IISServerOptions&gt;(options =&gt;
      {
          options.MaxRequestBodySize = 314572800;
      });
  
      services.AddControllersWithViews();
  }
  </code></pre>
  <p>and web config:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;security&gt;
      &lt;requestFiltering&gt;
        &lt;!-- This will handle requests up to 300MB --&gt;
        &lt;requestLimits maxAllowedContentLength=&quot;314572800&quot; /&gt;
      &lt;/requestFiltering&gt;
  &lt;/security&gt;
  </code></pre>
  <p>The above applies correctly but the default timeout is 2 min</p>
  <p>How can I increase the timeout in ASP.NET Core 3.1 app hosted in IIS?</p>
  <p>Note: my web.config</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;aspNetCore processPath=&quot;dotnet&quot; arguments=&quot;.\AspCoreTestFileUpload.dll&quot; stdoutLogEnabled=&quot;false&quot; stdoutLogFile=&quot;.\logs\stdout&quot; hostingModel=&quot;inprocess&quot; /&gt;
  </code></pre>
  <p>for requestTimeout :
  Doesn't apply to in-process hosting. For in-process hosting, the module waits for the app to process the request.</p>
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#attributes-of-the-aspnetcore-element" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#attributes-of-the-aspnetcore-element</a></p>
  <p><strong>I have to use inprocess hostingModel</strong></p>