diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-04 11:16:15 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-04-04 11:16:15 +0200 |
commit | 8653db699648321da785b3d5514fb67a7184411c (patch) | |
tree | cae9ef4d4f833b27967dc73d0be0b30cfe183299 /tcpclt.c | |
parent | a2a3c58c6c0d0f4e2cbe053979ed4feb32298ac5 (diff) | |
download | rsyslog-8653db699648321da785b3d5514fb67a7184411c.tar.gz rsyslog-8653db699648321da785b3d5514fb67a7184411c.tar.xz rsyslog-8653db699648321da785b3d5514fb67a7184411c.zip |
omfwd: speeded up tcp forwarding by reducing number of API calls
Diffstat (limited to 'tcpclt.c')
-rw-r--r-- | tcpclt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -308,7 +308,7 @@ Send(tcpclt_t *pThis, void *pData, char *msg, size_t len) CHKiRet(pThis->initFunc(pData)); iRet = pThis->sendFunc(pData, msg, len); - if(iRet == RS_RET_OK) { + if(iRet == RS_RET_OK || iRet == RS_RET_DEFER_COMMIT || iRet == RS_RET_PREVIOUS_COMMITTED) { /* we are done, we also use this as indication that the previous * message was succesfully received (it's not always the case, but its at * least our best shot at it -- rgerhards, 2008-03-12 |