🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Networking Beginner

What is HTTP Keep-Alive?

An HTTP mechanism that reuses a single TCP connection for multiple requests, reducing the overhead of establishing new connections.

HTTP Keep-Alive (persistent connections) allows multiple HTTP requests and responses to share a single TCP connection, eliminating the overhead of TCP handshakes and TLS negotiations for each request. In HTTP/1.1, connections are keep-alive by default (Connection: keep-alive header). Servers configure maximum requests per connection and idle timeout. Keep-alive significantly improves page load times for sites with many resources (images, CSS, JS files) — each resource does not require a new connection. HTTP/2 extends this further with multiplexing (multiple concurrent requests on one connection). Web servers like Nginx configure keepalive_timeout and keepalive_requests directives.

Related Terms

ARP (Address Resolution Protocol)
A protocol that maps IP addresses to physical MAC addresses on a local network segment.
NAT (Network Address Translation)
A method of mapping private IP addresses to public IP addresses, allowing multiple devices to share a single public IP.
MTU (Maximum Transmission Unit)
The maximum size of a data packet that can be transmitted over a network without fragmentation.
BGP (Border Gateway Protocol)
The routing protocol that makes the internet work by exchanging routing information between autonomous systems.
Anycast
A network routing technique where the same IP address is announced from multiple locations, directing users to the nearest server.
Reverse Proxy
A server that sits between clients and backend servers, forwarding client requests and returning server responses on their behalf.
View All Networking Terms →