Skip to content

Commit

Permalink
in_tcp: user friendly warn message for skipping records (fluent#6062)
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <wppttt@amazon.com>
Signed-off-by: root <root@sumit-acs.novalocal>
  • Loading branch information
PettitWesley authored and root committed Feb 8, 2023
1 parent 865c642 commit 31b6ca6
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 31b6ca6

Please sign in to comment.