Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.