Browse Source

[mod_accesslog] flush file log buffer at 8k size

personal/stbuehler/ci-build
Glenn Strauss 2 years ago
parent
commit
4069dc2ad7
  1. 2
      src/mod_accesslog.c

2
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",

Loading…
Cancel
Save