Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Website Connection Keep-Alive

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

like image 650
Kyojimaru Avatar asked Jan 22 '15 09:01

Kyojimaru


People also ask

How do you set keep alive?

To enable Keep-Alive, you need to explicitly request it via the HTTP header by accessing . htaccess or the main configuration file of your web server. If you turn on Keep-Alive, the HTTP response header will show Connection: keep-alive.

How do I increase gateway timeout in Azure App?

Re: App Service timeout in 230 sec The 4 minute idle timeout on the TCP level and this is implemented on the Azure hardware load balancer. This timeout is not configurable and this cannot be changed.

How do you increase keep alive timeout?

Type KeepAliveTimeout, and then press ENTER. On the Edit menu, click Modify. Type the appropriate time-out value (in milliseconds), and then click OK. For example, to set the time-out value to two minutes, type 120000.


1 Answers

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>
like image 77
Lybecker Avatar answered Sep 28 '22 12:09

Lybecker