feature: applied the larger_max_error_str patch to the nginx core to allow error log messages up to 4096 bytes.

This commit is contained in:
Yichun Zhang (agentzh) 2013-12-05 20:33:30 -08:00
parent 157febe350
commit 1728ca8c66
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- nginx-1.4.3/src/core/ngx_log.h 2013-10-08 05:07:14.000000000 -0700
+++ nginx-1.4.3-patched/src/core/ngx_log.h 2013-12-05 20:29:23.919775213 -0800
@@ -64,7 +64,7 @@ struct ngx_log_s {
};
-#define NGX_MAX_ERROR_STR 2048
+#define NGX_MAX_ERROR_STR 4096
/*********************************/

View File

@ -210,6 +210,10 @@ if [ "$answer" = "N" ]; then
echo
fi
echo "$info_txt applying the larger_max_error_str patch for nginx $ver"
patch -p1 < $root/patches/nginx-$ver-larger_max_error_str.patch || exit 1
echo
rm -f *.patch || exit 1
cd .. || exit 1