lua-upstream-nginx-module icon indicating copy to clipboard operation
lua-upstream-nginx-module copied to clipboard

Iterate peers as linked list instead of array

Open quezacoatl opened this issue 5 years ago • 1 comments

Accessing peers as an array has been deprecated since nginx 1.9.0 (changeset 6100 - http://hg.nginx.org/nginx/rev/c44459611d91) and does not work when using the zone directive in upstream block. This commit changes iteration to use peer->next and iterate as a linked list.

This PR should solve https://github.com/openresty/lua-upstream-nginx-module/issues/31 and https://github.com/openresty/lua-upstream-nginx-module/issues/61

quezacoatl avatar Sep 20 '18 10:09 quezacoatl