Skip to content

Commit 5cc2857

Browse files
committed
Forwarder: fix templates being repeatedly sent when using TCP
When using UDP, templates are periodically resent unlike TCP, where this periodic resending should not happen. Because of a missing check this periodic resending was happening even over TCP.
1 parent 6061caf commit 5cc2857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/output/forwarder/src/Connection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ Connection::get_or_create_sender(ipx_msg_ipfix_t *msg)
236236
send_message(msg);
237237
},
238238
m_con_params.protocol == Protocol::TCP,
239-
m_tmplts_resend_pkts,
240-
m_tmplts_resend_secs)));
239+
m_con_params.protocol != Protocol::TCP ? m_tmplts_resend_pkts : 0,
240+
m_con_params.protocol != Protocol::TCP ? m_tmplts_resend_secs : 0)));
241241
}
242242

243243
Sender &sender = *m_senders[odid].get();

0 commit comments

Comments
 (0)