Azure Website Connection Keep-Alive

北战南征 提交于 2020-01-12 21:22:24

问题


I was using Windows Azure Website to host my website.

  1. I want to enable Connection: Keep-Alive in my website, how to enable it for my website?
  2. How to check whether I have successfully enabled it on my website?
  3. How to set the timeout for the Connection: Keep-Alive and how to determine the best value for the timeout

My server is Windows and using IIS


回答1:


You can set most of the configuration options for IIS 8 in Azure Web Sites too. To enable keep-alive, add the following section in the web.config

<configuration>
  <system.webServer>
    <httpProtocol allowKeepAlive="true" />
  </system.webServer>
</configuration>


来源:https://stackoverflow.com/questions/28085768/azure-website-connection-keep-alive

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