Skip to content

Commit

Permalink
Merge pull request #258 from sipcapture/resend
Browse files Browse the repository at this point in the history
added resend
  • Loading branch information
lmangani authored Aug 15, 2023
2 parents 32d2ad7 + b5c1814 commit 0499d48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/sipcapture/heplify/sniffer"
)

const version = "heplify 1.65.6"
const version = "heplify 1.65.7"

func createFlags() {

Expand Down
6 changes: 6 additions & 0 deletions publish/hep.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ func (h *HEPOutputer) Send(msg []byte) {
if err = h.ReConnect(n); err != nil {
logp.Err("reconnect error: %v", err)
return
} else {
h.client[n].writer.Write(msg)
err = h.client[n].writer.Flush()
if err != nil {
logp.Err("Bad resend: %v", err)
}
}
}
}
Expand Down

0 comments on commit 0499d48

Please sign in to comment.