Skip to content

Commit

Permalink
fix: add ping after reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Oct 30, 2024
1 parent 42a6ef9 commit c4cc4eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/sipcapture/heplify/sniffer"
)

const version = "heplify 1.66.7"
const version = "heplify 1.66.8"

func createFlags() {

Expand Down
3 changes: 3 additions & 0 deletions publish/hep.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (h *HEPOutputer) ReConnect(n int) (err error) {
}
h.client[n].writer.Reset(h.client[n].conn)

//send ping packet on reconnect
h.ReSendPingPacket()

if config.Cfg.HEPBufferEnable {
if _, err := h.copyHEPFileOut(n); err != nil {
logp.Err("Sending HEP from file error: %v", err)
Expand Down

0 comments on commit c4cc4eb

Please sign in to comment.