Skip to content

Commit c4cc4eb

Browse files
committed
fix: add ping after reconnect
1 parent 42a6ef9 commit c4cc4eb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/sipcapture/heplify/sniffer"
1616
)
1717

18-
const version = "heplify 1.66.7"
18+
const version = "heplify 1.66.8"
1919

2020
func createFlags() {
2121

publish/hep.go

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func (h *HEPOutputer) ReConnect(n int) (err error) {
7272
}
7373
h.client[n].writer.Reset(h.client[n].conn)
7474

75+
//send ping packet on reconnect
76+
h.ReSendPingPacket()
77+
7578
if config.Cfg.HEPBufferEnable {
7679
if _, err := h.copyHEPFileOut(n); err != nil {
7780
logp.Err("Sending HEP from file error: %v", err)

0 commit comments

Comments
 (0)