Remove unused codes in ngx_http_upstream_connect

Maxim Dounin mdounin at mdounin.ru
Fri Apr 21 17:38:43 UTC 2023


Hello!

On Fri, Apr 21, 2023 at 02:51:56AM +0000, meng lynch wrote:

> Another question, can I remove line 666 to 675 in 
> ngx_http_upstream_init_request? Because the state will be 
> created in ngx_http_upstream_connect.

An empty upstream state is used to separate different upstream 
module invocations, see ngx_http_upstream_addr_variable() and 
the description of the $upstream_addr variable 
(https://nginx.org/r/$upstream_addr).

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list