Skip to content

Commit

Permalink
Reset backoffCount after correct ACK received
Browse files Browse the repository at this point in the history
  • Loading branch information
adioss committed Jun 3, 2016
1 parent 870fba3 commit 9248d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libbeat/outputs/mode/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (s *SingleConnectionMode) publish(
if resetFail {
debug("reset fails")
fails = 0
backoffCount = 0
}

if !guaranteed && (s.maxAttempts > 0 && fails == s.maxAttempts) {
Expand Down

0 comments on commit 9248d0f

Please sign in to comment.