I have an ASP.net web api that is timing out request at around ~100 seconds. One of my action methods needs more time to complete a request.
After going over various link, I have already figured out that the following will not work
a) executionTimeout
& ScriptTimeout
as request pipeline is completely asynchronous and those values were for synchronous pipeline back then.
b) [AsyncTimeout(seconds)]
attribute as it applies only for MVC web applications and ASP web api does not reference system.web.mvc
Is there any other approach on controlling timeout for this scenario?
Appears that there is no timeout enforced on Web API. The timeout was happening on client side. After changing the HttpClient.Timeout value it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With