rafthttp: cleanup prober when stopping the transport
parent
709718ed97
commit
1e048b5c24
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue