From 4069dc2ad792e1fdcbb9c9839ecab3d2c0a2aca6 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Mon, 9 Dec 2019 23:52:27 -0500 Subject: [PATCH] [mod_accesslog] flush file log buffer at 8k size --- src/mod_accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c index 4fa139ae..ccffe594 100644 --- a/src/mod_accesslog.c +++ b/src/mod_accesslog.c @@ -1144,7 +1144,7 @@ REQUESTDONE_FUNC(log_access_write) { else { buffer_append_string_len(b, CONST_STR_LEN("\n")); - if (flush || buffer_string_length(b) >= BUFFER_MAX_REUSE_SIZE) { + if (flush || buffer_string_length(b) >= 8192) { if (!accesslog_write_all(p->conf.log_access_fd, b)) { log_perror(con->conf.errh, __FILE__, __LINE__, "writing access log entry failed: %s",