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

I'm talking with a "tech guy" and he's asserting that: if a user open a web page (for example and leaves the browser open, the connection with the server remains open until the browser close.

Is this true? Or once the page is loaded the server has finished its work? (the page is a simple HTML page)

Does this depend on Apache config somehow?

Thanks in advance for your help.

share|improve this question
up vote 3 down vote accepted

It doesn't quite work like that. HTTP connections have a keep-alive option (defaults to on in later versions of the HTTP protocol), which leaves a session open between the client and server for more data requests. However, both servers and clients will eventually close that connection and some clients may not even set it.

More info here.

You'll see (from that article) that most clients close their persistent connections after a reasonably short duration, and most web servers close them on an even shorter timeout.

share|improve this answer
thanks for your help, very interesting article – AldoB May 14 '12 at 13:07

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.