HTTP Persistent Connections: Difference between revisions
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
A HTTP persistent connection is a TCP/IP connection between the client and server that allows more that one request per connection. | A HTTP persistent connection is a TCP/IP connection between the client and server that allows more that one request per connection. | ||
It is the client that initially requests the connection to be kept alive. In HTTP 1.1, a persistent connection is initiated by specifying a "Keep-Alive" value for the "Connection" request header: | |||
<pre> | |||
GET ... HTTP/1.1 | |||
Host: ... | |||
Connection: Keep-Alive | |||
</pre> | |||
The server may or may not support persistent connections. If the server does support them, it will confirm that by including with the response a "Connection" response header: | |||
<pre> | |||
200 OK | |||
Content-Length: ... | |||
Connection: Keep-Alive | |||
</pre> | |||
=Configuration= | =Configuration= |
Revision as of 17:21, 23 November 2016
External
- HTTP Keepalive http://web.archive.org/web/20100813132504/http://www.io.com/~maus/HttpKeepAlive.html
- Akamai Support of Persistent Connections https://community.akamai.com/thread/1192
Internal
Overview
A HTTP persistent connection is a TCP/IP connection between the client and server that allows more that one request per connection.
It is the client that initially requests the connection to be kept alive. In HTTP 1.1, a persistent connection is initiated by specifying a "Keep-Alive" value for the "Connection" request header:
GET ... HTTP/1.1 Host: ... Connection: Keep-Alive
The server may or may not support persistent connections. If the server does support them, it will confirm that by including with the response a "Connection" response header:
200 OK Content-Length: ... Connection: Keep-Alive
Configuration
For details on how to configure HTTP persistent connections with httpd, see: