Timeouts and Keep-Alive
1 min read
- Authors
- Name
- Vijaykumar Rajendran
- @vijayrajendran_

Table of Contents
Timeouts and Keep-Alive
Keep-Alive Settings
http {
keepalive_timeout 65;
keepalive_requests 100;
}
keepalive_timeout- How long to keep idle connectionskeepalive_requests- Max requests per connection
Timeout Settings
http {
client_body_timeout 12;
client_header_timeout 12;
send_timeout 10;
}
client_body_timeout- Time to send bodyclient_header_timeout- Time for headerssend_timeout- Time to send response
Proxy Timeouts
location / {
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
Optimized connections!