0

How set timeout in action in asp.net core 2.0?

A request can not take more than 1 second. If it takes more than a second to return timeout.

Rodrigo
  • 1,561
  • 1
  • 12
  • 12
  • Use a CancellationToken? – Pawel Nov 10 '17 at 20:12
  • Possible duplicate of [How to set the request timeout for one controller action on IIS and IIS Express](https://stackoverflow.com/questions/34637488/how-to-set-the-request-timeout-for-one-controller-action-on-iis-and-iis-express) – Set Nov 11 '17 at 09:43
  • I'm using webapp on azure. No have acess to IIS direct. – Rodrigo Jan 25 '18 at 15:36

1 Answers1

0

You can set it with web.config requestTimeout="00:20:00"

<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:20:00" />
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232