keep-alive

Keeping a TCP connection open after an HTTP response so the same client can send further requests over it.

In more detail

Reuse avoids the cost of a new connection and TLS handshake for every request. Servers close idle ones after a timeout to free resources.

Example

HTTP/1.1 streaming endpoints set Connection: keep-alive so the response can stay open.

Related terms

Taught in

References