How can increase Azure App Service 230 sec request time out

时光总嘲笑我的痴心妄想 提交于 2019-12-17 19:46:59

问题


I have hosted an Asp.NET MVC application on Azure App Service. I am getting a timeout exception which elapsed more than 230 seconds. How can increase it on Azure App Service?


回答1:


As far as I know, 230 seconds is the maximum amount of time that a request can take without sending any data back to the response.

We couldn't increase it in azure web app.

Here are two work around.

One is you could move your application to a cloud service or created a VM where you have control over those settings.

Another way, you could also use async pattern in MVC.

For example:

Firstly, you could send the request to the MVC to tell the server start to work and returns an http 202.

Then you could send request every seconds or minutes from client to check the server work. If it works completely return 200 to tell the client has already completely.



来源:https://stackoverflow.com/questions/44820256/how-can-increase-azure-app-service-230-sec-request-time-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!