Co-Authored By:

Asked by: Mayoro Pels
technology and computing computer networkingWhat does connection keep alive do?
Similarly, how do I close keep alive connection?
Overview. The default HTTP connection is usually closed after each request has been completed, meaning that the server closes the TCP connection after delivering the response. In order to keep the connection open for multiple requests, the keep-alive connection header can be used.
Also to know is, how does HTTP keep alive work?
A keep-alive allows an existing TCP connection to be re-used for multiple requests/responses, thus avoiding all of that overhead. That is what makes the connection "persistent". In HTTP 0.9 and 1.0, by default the server closes its end of a TCP connection after sending a response to a client.
All modern browsers use persistent connections as long as the server has Keep-Alive enabled. In order to check if your pages are delivered with a Keep-Alive header, you can use the HTTP Header Checker tool. This will display the Connection: Keep-Alive field if HTTP Keep-Alive is enabled.