bugfix: win32/win64: the error log buffer size was merely 2048 bytes (now updated to 4096 bytes).

applied the win32_max_err_str patch for the nginx core.
This commit is contained in:
Yichun Zhang (agentzh)
2019-05-08 14:30:10 -07:00
parent 540567e42c
commit bf2e5697e1
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/src/os/win32/ngx_event_log.c b/src/os/win32/ngx_event_log.c
index e11ed1e8..dce8eddd 100644
--- a/src/os/win32/ngx_event_log.c
+++ b/src/os/win32/ngx_event_log.c
@@ -8,7 +8,9 @@
#include <ngx_core.h>
-#define NGX_MAX_ERROR_STR 2048
+#ifndef NGX_MAX_ERROR_STR
+#define NGX_MAX_ERROR_STR 4096
+#endif
void ngx_cdecl