]> git.kaiwu.me - nginx.git/commit
Upstream: enabled keepalive by default for explicit upstreams.
authorRoman Semenov <r.semenov@f5.com>
Mon, 23 Mar 2026 18:03:26 +0000 (11:03 -0700)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 24 Mar 2026 10:28:52 +0000 (14:28 +0400)
commit4fbe4b62746f67d4348212c089b745bd10082964
tree9022aa586bbaeb16f3410b60a47380a276595933
parentc5d36eac33d7c2198240111819b2a1c9fcb593a4
Upstream: enabled keepalive by default for explicit upstreams.

Keepalive is now automatically enabled in the "local" mode for upstreams
defined in configuration files. Cached keepalive connections are no longer
shared between different locations referencing the same explicit upstream
unless keepalive is explicitly configured without the "local" parameter.

To disable keepalive entirely, use keepalive 0; inside the upstream block.
To allow sharing cached connections between locations, configure
keepalive <max_cached>; without the "local" parameter.
src/http/modules/ngx_http_upstream_keepalive_module.c