Reputation: 6592
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?
Upvotes: 4
Views: 11219
Reputation: 6592
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.
Upvotes: 3