Skip to content

Commit

Permalink
Merge pull request #730 from mistsys/master
Browse files Browse the repository at this point in the history
fix erronous errTimedOut ("abandoned subscription...because consuming…
  • Loading branch information
eapache authored Aug 16, 2016
2 parents f4a6263 + 906ed72 commit 4f47ee4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ feederLoop:
msgs, child.responseResult = child.parseResponse(response)

for i, msg := range msgs {
expiryTimer.Reset(child.conf.Consumer.MaxProcessingTime)
if !expiryTimer.Reset(child.conf.Consumer.MaxProcessingTime) {
// expiryTimer was expired; clear out the waiting msg
<-expiryTimer.C
}

select {
case child.messages <- msg:
Expand Down

0 comments on commit 4f47ee4

Please sign in to comment.