diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-12 14:50:35 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-12 14:50:35 +0000 |
commit | 1bc3337f004712e791abedeae8b08b2b9bd83e90 (patch) | |
tree | 70703e64c742e3b5b7210c168497de92752a0b90 /omfwd.c | |
parent | 618a7f6a220563a50909d0e15eb90ce222aced31 (diff) | |
download | rsyslog-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |