Skip to content

Commit 9d25570

Browse files
authored
Merge pull request #403 from bazsi/fix-batch-lines-in-case-batch-bytes-is-set
http: fix batch-lines() in case only batch-bytes() is set
2 parents 8aed412 + 0a5e470 commit 9d25570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/http/http.c

+2
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ http_dd_init(LogPipe *s)
457457
return FALSE;
458458
}
459459
}
460+
if (self->batch_bytes > 0 && self->super.batch_lines == 0)
461+
self->super.batch_lines = G_MAXINT;
460462

461463
log_template_options_init(&self->template_options, cfg);
462464

0 commit comments

Comments
 (0)