bugfix: applied the cache_lock_hang_in_subreq patch to the nginx core to fix the request hang when using proxy_cache_lock in subrequests and the cache lock timeout happens.

This commit is contained in:
Yichun Zhang (agentzh)
2013-10-26 14:54:50 -07:00
parent 4308a5ca45
commit 1df484be52
2 changed files with 29 additions and 3 deletions

View File

@ -175,22 +175,26 @@ fi
answer=`$root/util/ver-ge "$main_ver" 1.5.3`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the unix_socket_accept_over_read patch for lua $ver"
echo "$info_txt applying the unix_socket_accept_over_read patch for nginx $ver"
patch -p1 < $root/patches/nginx-$ver-unix_socket_accept_over_read.patch || exit 1
echo
fi
answer=`$root/util/ver-ge "$main_ver" 1.5.3`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the gzip_buffered_bug patch for lua $ver"
echo "$info_txt applying the gzip_buffered_bug patch for nginx $ver"
patch -p1 < $root/patches/nginx-$ver-gzip_buffered_bug.patch || exit 1
echo
fi
echo "$info_txt applying the gzip_flush_bug patch for lua $ver"
echo "$info_txt applying the gzip_flush_bug patch for nginx $ver"
patch -p1 < $root/patches/nginx-$ver-gzip_flush_bug.patch || exit 1
echo
echo "$info_txt applying the cache_lock_hang_in_subreq patch for nginx $ver"
patch -p1 < $root/patches/nginx-$ver-cache_lock_hang_in_subreq.patch || exit 1
echo
rm -f *.patch || exit 1
cd .. || exit 1