Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the IIS7 default time for HTTP keepAlive?

share|improve this question
up vote 25 down vote accepted

The default connection timeout in IIS7 is 2 minutes. Click on your web site in IIS Mgr, click Advanced Settings, and expand Connection Limits. The Connection Timeout (Seconds) setting is what governs this. If IIS doesn't receive activity on a connection for this duration then it will time the connection out. This is regardless of whether or not the connection was requested as a keep-alive. You will, of course, have to have keep-alives enabled for this to be a "keep-alive timeout". Keep-alive is enabled by default in IIS.

You can also set it for the site in the applicationHost.config file using the <limits> and the connectionTimeout attribute.

<limits connectionTimeout="00:02:00" />

This will set the timeout value to 2 minutes.

share|improve this answer

HTTP KeepAlive is a true/false switch. If HTTP Keepalive is true, it will use the "Connection Timeout" setting (default 120 seconds)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.