I was using Windows Azure Website to host my website.
Connection: Keep-Alive
in my website, how to enable it for my website?timeout
for the Connection: Keep-Alive
and how to determine the best value for the timeout
My server is Windows and using IIS
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.
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.
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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With