# Keepalive\_timeout http|server|listen context

**URL:** <https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960>\
**Category:** NGINX\
**Created:** [December 4, 2012, 11:29pm UTC](https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960 "2012-12-04T23:29:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 4, 2012, 11:29pm UTC](https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960/1 "2012-12-04T23:29:19Z")

</div>

If ‘keepalive\_timeout 0’ is set at the http context level, does nginx  
honor  
‘keepalive\_timeout N’ at the server and/or listen level?

Posted at Nginx Forum:

> **[keepalive\_timeout http|server|listen context](https://forum.nginx.org/read.php?2,233583,233583#msg-233583)**
>
> If 'keepalive\_timeout 0' is set at the http context level, does nginx honor 'keepalive\_timeout N' at the server and/or listen level?

---

<div class="post-metadata">

**Author:** ![jeenam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jeenam](https://www.ruby-forum.com/u/jeenam)\
**Post date:** [December 5, 2012, 1:52am UTC](https://www.ruby-forum.com/t/keepalive-timeout-http-server-listen-context/224960/2 "2012-12-05T01:52:55Z")

</div>

On Dec 5, 2012, at 2:28 , jeenam wrote:

> If ‘keepalive\_timeout 0’ is set at the http context level, does nginx honor  
> ‘keepalive\_timeout N’ at the server and/or listen level?

There is no listen context as such, but there is default server for  
listen address:port pair. As to the question - yes, you can change  
keepalive\_timeout at server or location level.

–  
Igor S.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.
