On Thursday, Jun 8, 2017 0:42 AM +0300, Vladimir Homutov wrote:
07.06.2017 17:00, 胡聪 (hucc) пишет:
There are two possible errors in http://nginx.org/en/docs/dev/development_guide.html#http_load_balancing
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.
Best wishes -hucc