Process Flow - Keepalive connections
Client sends first request
Server accepts connection
Process request and send response
Check if keepalive enabled?
No→Close connection
Yes
Keep connection open for next request
Client sends next request on same connection
Repeat processing without new TCP handshake
Connection closed after timeout or client closes
The server keeps the TCP connection open after sending a response, allowing the client to send multiple requests without reconnecting.