Changing Request Timeout in Asp.net WebAPI

asp.net, asp.net-mvc, asp.net-web-api

Solution

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.

Problem

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?

Original source