nginx development guide
hucong.c at foxmail.com
Mon Jun 19 15:43:55 UTC 2017
On Thursday, Jun 8, 2017 0:42 AM +0300, Vladimir Homutov wrote:
>07.06.2017 17:00, 胡聪 (hucc) пишет:
>> There are two possible errors in
>>> init(r, us) — initializes per-request ngx_http_upstream_peer_t.peer (not to be confused with the
>>> ngx_http_upstream_srv_conf_t.peer described above which is per-upstream) structure that is used
>>> for load balancing. It will be passed as data argument to all callbacks that deal with server selection.
>> Maybe is "initializes some fields (data, get, free, etc.) of per-request ngx_http_upstream_t.peer (...) "
>this details are described below in the text
Please reconfirm this part, I firmly believe it is inconsistent with the meaning of the source code.
Actually, I think this part should be rewritten，because it is confusing.
More information about the nginx-devel