Merge pull request #6396 from heyitsanthony/rafthttp-msg-leak

rafthttp: log stream stopped message before closing channel
This commit is contained in:
Xiang Li 2016-09-09 17:52:03 -05:00 committed by GitHub
commit 9a67d71e6c

View File

@ -320,8 +320,8 @@ func (cr *streamReader) run() {
// overhead when retry.
case <-time.After(100 * time.Millisecond):
case <-cr.stopc:
close(cr.done)
plog.Infof("stopped streaming with peer %s (%s reader)", cr.peerID, t)
close(cr.done)
return
}
}