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/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to