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 /tcpclt.h | |
parent | 618a7f6a220563a50909d0e15eb90ce222aced31 (diff) | |
download | rsyslog-1bc3337f004712e791abedeae8b08b2b9bd83e90.tar.gz rsyslog-1bc3337f004712e791abedeae8b08b2b9bd83e90.tar.bz2 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 'tcpclt.h')
-rw-r--r-- | tcpclt.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,6 +33,8 @@ typedef struct tcpclt_s { BEGINobjInstance; /**< Data to implement generic object - MUST be the first data element! */ TCPFRAMINGMODE tcp_framing; + char *prevMsg; + size_t lenPrevMsg; /* session specific callbacks */ rsRetVal (*initFunc)(void*); rsRetVal (*sendFunc)(void*, char*, size_t); |