ngx_http_upstream_status_variable question

gaoyan09 nginx-forum at forum.nginx.org
Wed Jul 20 09:33:18 UTC 2016


ngx_http_upstream_status_variable

len = r->upstream_states->nelts * (3 + 2);

write status to string, one status str len would be 3 in most case, like
200, 302, 404....
but if upstream multi times, may be add ' : ' as separator

so, string len may be nelts*3 + (nelts-1)*3 = 6nelts - 3 != nelts * (3 +
2);

what's wrong here?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268369,268369#msg-268369



More information about the nginx mailing list