Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_tcp: user friendly warn message for skipping records #6062

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/in_tcp/tcp_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ int tcp_conn_event(void *data)
available = (conn->buf_size - conn->buf_len) - 1;
if (available < 1) {
if (conn->buf_size + ctx->chunk_size > ctx->buffer_size) {
flb_plg_trace(ctx->ins,
"fd=%i incoming data exceed limit (%zu KB)",
event->fd, (ctx->buffer_size / 1024));
flb_plg_warn(ctx->ins,
"fd=%i incoming data exceeds 'Buffer_Size' (%zu KB)",
event->fd, (ctx->buffer_size / 1024));
tcp_conn_del(conn);
return -1;
}
Expand Down