summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-12 14:50:35 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-12 14:50:35 +0000
commit1bc3337f004712e791abedeae8b08b2b9bd83e90 (patch)
tree70703e64c742e3b5b7210c168497de92752a0b90 /omfwd.c
parent618a7f6a220563a50909d0e15eb90ce222aced31 (diff)
downloadrsyslog-1bc3337f004712e791abedeae8b08b2b9bd83e90.tar.gz
rsyslog-1bc3337f004712e791abedeae8b08b2b9bd83e90.tar.xz
rsyslog-1bc3337f004712e791abedeae8b08b2b9bd83e90.zip
improved session recovery when outbound tcp connection breaks, reduces
probability of message loss at the price of a highly unlikely potential (single) message duplication
Diffstat (limited to 'omfwd.c')
-rw-r--r--omfwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/omfwd.c b/omfwd.c
index f036f173..00a3c8ed 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -259,12 +259,13 @@ static rsRetVal TCPSendFrame(void *pvData, char *msg, size_t len)
*/
static rsRetVal TCPSendPrepRetry(void *pvData)
{
+ DEFiRet;
instanceData *pData = (instanceData *) pvData;
assert(pData != NULL);
close(pData->sock);
pData->sock = -1;
- return RS_RET_OK;
+ RETiRet;
}