Skip to content

Commit

Permalink
rafthttp: cleanup prober when stopping the transport
Browse files Browse the repository at this point in the history
  • Loading branch information
xiang90 committed Aug 4, 2015
1 parent 709718e commit 1e048b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rafthttp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (t *transport) Stop() {
for _, p := range t.peers {
p.Stop()
}
t.prober.RemoveAll()
if tr, ok := t.roundTripper.(*http.Transport); ok {
tr.CloseIdleConnections()
}
Expand Down

0 comments on commit 1e048b5

Please sign in to comment.