From 1728ca8c66dd2b6e80d190495c4dfd46b61076e3 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Thu, 5 Dec 2013 20:33:30 -0800 Subject: [PATCH] feature: applied the larger_max_error_str patch to the nginx core to allow error log messages up to 4096 bytes. --- patches/nginx-1.4.3-larger_max_error_str.patch | 11 +++++++++++ util/mirror-tarballs | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 patches/nginx-1.4.3-larger_max_error_str.patch diff --git a/patches/nginx-1.4.3-larger_max_error_str.patch b/patches/nginx-1.4.3-larger_max_error_str.patch new file mode 100644 index 0000000..2a135e9 --- /dev/null +++ b/patches/nginx-1.4.3-larger_max_error_str.patch @@ -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 + + + /*********************************/ diff --git a/util/mirror-tarballs b/util/mirror-tarballs index befa33a..95c12ae 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -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