summaryrefslogtreecommitdiffstats
path: root/tcpclt.h
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 /tcpclt.h
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 'tcpclt.h')
-rw-r--r--tcpclt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcpclt.h b/tcpclt.h
index 9f1f4c5f..d2f1fe02 100644
--- a/tcpclt.h
+++ b/tcpclt.h
@@ -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);