Use of upstream keepalive_time

Vishwas Bm bmvishwas at
Fri Jan 20 06:07:15 UTC 2023


I see that from 1.19.10 keepalive_time has been added.

Also keepalive_timeout is present for idle connection

On checking the behaviour between these two, I see that keepalive_time is
having higher precedence over keepalive_timeout.
Even if connection is not idle based on keepqlive_timeout, connection is
still  getting closed because of keepalive_time.

Is this expected behaviour?
Also can I set keepalive_time to higher value say 24hours ? Any drawbacks
with this ?
Can this keepalive_time be disabled and priority given only to
keepalive_timeout ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list