]> git.kaiwu.me - nginx.git/commit
Upstream: do not unnecessarily create per-request upstreams.
authorRuslan Ermilov <ru@nginx.com>
Mon, 31 Oct 2016 15:33:36 +0000 (18:33 +0300)
committerRuslan Ermilov <ru@nginx.com>
Mon, 31 Oct 2016 15:33:36 +0000 (18:33 +0300)
commit149fda55f730c38fb9e2c5b63370da92c0ad7c22
tree433a6cde96c4b203af56fbb9930c857a978e3ece
parent3fae83a91c6e5cda012adf6ee2783273e747f613
Upstream: do not unnecessarily create per-request upstreams.

If proxy_pass (and friends) with variables evaluates an upstream
specified with literal address, nginx always created a per-request
upstream.

Now, if there's a matching upstream specified in the configuration
(either implicit or explicit), it will be used instead.
src/http/ngx_http_upstream.c
src/stream/ngx_stream_proxy_module.c