feature: added nginx core patches needed by ngx_stream_lua_module's balancer_by_lua*.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
This commit is contained in:
Datong Sun
2017-08-30 02:00:48 -07:00
committed by Yichun Zhang (agentzh)
parent 1f2121b546
commit 4b594fdce6
4 changed files with 268 additions and 0 deletions

View File

@ -41,6 +41,21 @@ if [ "$answer" = "N" ]; then
echo
fi
answer=`$root/util/ver-ge "$main_ver" 1.13.3`
if [ "$answer" = "Y" ]; then
echo "$info_txt applying the stream_balancer_export patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-stream_balancer_export.patch || exit 1
echo
echo "$info_txt applying the stream_proxy_get_next_upstream_tries patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_get_next_upstream_tries.patch || exit 1
echo
echo "$info_txt applying the stream_proxy_timeout_fields patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_timeout_fields.patch || exit 1
echo
fi
answer=`$root/util/ver-ge "$main_ver" 1.5.12`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the patch for nginx security advisory (CVE-2014-0133)"