Skip to content

Commit

Permalink
http: fix batch-lines() in case only batch-bytes() is set
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi committed Dec 2, 2024
1 parent bbb2176 commit 0a5e470
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/http/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ http_dd_init(LogPipe *s)
return FALSE;
}
}
if (self->batch_bytes > 0 && self->super.batch_lines == 0)
self->super.batch_lines = G_MAXINT;

log_template_options_init(&self->template_options, cfg);

Expand Down

0 comments on commit 0a5e470

Please sign in to comment.