rafthttp: cleanup prober when stopping the transport

release-2.2
Xiang Li 2015-08-04 17:42:51 +08:00
parent 709718ed97
commit 1e048b5c24
1 changed files with 1 additions and 0 deletions

View File

@ -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()
}