Skip to content

Commit

Permalink
imptcp bugfix: spam log on oversize message
Browse files Browse the repository at this point in the history
If an oversize message was received by imptcp, imptcp reported
one error message for EACH oversize character. This could
result in a potentially very large number of similar (and
useless) messages.

This is a regression from commit f052717.

closes #5078
  • Loading branch information
rgerhards committed Apr 17, 2023
1 parent 85fd928 commit 2e8b482
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/imptcp/imptcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,7 @@ processDataRcvd(ptcpsess_t *const __restrict__ pThis,
"max msg size; message will be split starting at: \"%.*s\"\n",
pThis->pLstn->pSrv->pszInputName, i, (i < 32) ? i : 32, *buff);
doSubmitMsg(pThis, stTime, ttGenTime, pMultiSub);
iMsg = 0;
++(*pnMsgs);
if(pThis->pLstn->pSrv->discardTruncatedMsg == 1) {
pThis->inputState = eInMsgTruncation;
Expand Down

0 comments on commit 2e8b482

Please sign in to comment.