Skip to content

Commit 0e5ab00

Browse files
authored
Merge pull request #1106 from dfawley/cc_cancel
Add comment explaining why cancel is not called in success path after client transport is created
2 parents 1dab933 + 77204bf commit 0e5ab00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clientconn.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ func (ac *addrConn) resetTransport(closeTransport bool) error {
777777
Metadata: ac.addr.Metadata,
778778
}
779779
newTransport, err := transport.NewClientTransport(ctx, sinfo, ac.dopts.copts)
780+
// Don't call cancel in success path due to a race in Go 1.6:
781+
// https://github.com/golang/go/issues/15078.
780782
if err != nil {
781783
cancel()
782784

0 commit comments

Comments
 (0)