Closed rahulghangas closed 3 years ago
Transport dial method will spam dials if dial context is exceeded or cancelled and the connection is still not established
if err != nil { t.opts.Logger.Error("dial", zap.String("remote", remote.String()), zap.String("addr", remoteAddr.String()), zap.Error(err)) select { case <-retryCtx.Done(): case <-dialCtx.Done(): if !t.IsConnected(remote) { continue } } }
I read the code wrong. The issue is something else entirely
Transport dial method will spam dials if dial context is exceeded or cancelled and the connection is still not established