mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: close idle connections when stop sendhub
This commit is contained in:
parent
f34fe6e4ae
commit
fa292391d8
@ -86,6 +86,9 @@ func (h *sendHub) Stop() {
|
||||
for _, s := range h.senders {
|
||||
s.Stop()
|
||||
}
|
||||
if tr, ok := h.tr.(*http.Transport); ok {
|
||||
tr.CloseIdleConnections()
|
||||
}
|
||||
}
|
||||
|
||||
func (h *sendHub) ShouldStopNotify() <-chan struct{} {
|
||||
|
Loading…
x
Reference in New Issue
Block a user