summaryrefslogtreecommitdiffstats
path: root/tcpclt.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-04 11:16:15 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-04 11:16:15 +0200
commit8653db699648321da785b3d5514fb67a7184411c (patch)
treecae9ef4d4f833b27967dc73d0be0b30cfe183299 /tcpclt.c
parenta2a3c58c6c0d0f4e2cbe053979ed4feb32298ac5 (diff)
downloadrsyslog-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpclt.c b/tcpclt.c
index 0db98ea9..285f104b 100644
--- a/tcpclt.c
+++ b/tcpclt.c
@@ -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