Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase azure web app request timeout

Is there any way to increase the request timeout for azure web apps?

If I delay the request by anything over 2 minutes or so the request fails with no error (blank page returned) or a vague 503 response.

    public ActionResult Index()     {         System.Threading.Thread.Sleep(230000);         return View();     } 

I have some long running requests that I need to run (uploading large files/large pdf conversion jobs) - is there any way around this? I'd prefer to avoid using VM hosting is possible. I've tried scaling the web app to basic or standard plans, but it doesn't seem to make any difference.

like image 932
woggles Avatar asked Sep 24 '15 07:09

woggles


People also ask

How do I increase request timeout in Azure Web App?

This timeout is not configurable, and this cannot be changed.

How do I increase timeout in Azure?

As you are aware, the 230 seconds is a timeout configured at the Azure App service load balancer. This is a part of the Azure App service architecture and cannot be configured or changed.


1 Answers

No, you cannot increase the timeout for Azure App Services (it is 230 seconds). You can move to a cloud services or IIS hosted on a VM where you have control over those settings. You can also move to an async model where the client makes a request, gets some sort of ticket or identifier that is can poll back to see if the processing is done. There are many examples of async type models for web apps out there you can choose from. Ref:https://social.msdn.microsoft.com/Forums/en-US/05f254a6-9b34-4eb2-a5f7-2a82fb40135f/time-out-after-230-seconds?forum=windowsazurewebsitespreview

like image 50
Jeff Sanders - MSFT Avatar answered Sep 19 '22 05:09

Jeff Sanders - MSFT