From 8653db699648321da785b3d5514fb67a7184411c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 4 Apr 2011 11:16:15 +0200 Subject: omfwd: speeded up tcp forwarding by reducing number of API calls --- tcpclt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcpclt.c') 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 -- cgit