Merge pull request #717 from heyitsanthony/fix-dial-leak
clientconn: buffer waitC on Dial goroutine
This commit is contained in:
Коммит
e9855a161b
|
@ -245,7 +245,7 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
|
|||
return nil, errNoAddr
|
||||
}
|
||||
}
|
||||
waitC := make(chan error)
|
||||
waitC := make(chan error, 1)
|
||||
go func() {
|
||||
for _, a := range addrs {
|
||||
if err := cc.newAddrConn(a, false); err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче