Sitemap
Nuwan Zen

Nuwan Zen

Sometimes A software Engineer, sometimes a support engineer, sometimes a devops engineer, sometimes a cloud engineer :D That’s how the this life goes!

HTTP keep-alive

Jul 2, 2021

HTTP keep-alive is an instruction that allows a single TCP connection to remain open for multiple HTTP requests/responses.

Press enter or click to view image in full size
https://www.imperva.com/learn/wp-content/uploads/sites/13/2019/01/keep-alive.jpg

By default, HTTP connections close after each request. Enabling the keep-alive header allows you to serve all web page resources over a single connection.

Configurations

keep-alive must be enabled on your server, followings are configurable

Get Nuwan Zen’s stories in your inbox

Join Medium for free to get updates from this writer.

MaxKeepAliveRequests: maximum number of requests served by a session

KeepAliveTimeout: time a session will last

Reference:

--

--

Nuwan Zen
Nuwan Zen

Written by Nuwan Zen

Sometimes A software Engineer, sometimes a support engineer, sometimes a devops engineer, sometimes a cloud engineer :D That’s how the this life goes!