Skip to content

Commit b77bb09

Browse files
committed
h2 dialer: use base ctx at all times
1 parent 9e0e96a commit b77bb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dialer/h2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (d *H2ProxyDialer) DialContext(ctx context.Context, network, address string
9797
scheme = "http"
9898
}
9999
pr, pw := io.Pipe()
100-
connCtx, connCl := context.WithCancel(context.Background())
100+
connCtx, connCl := context.WithCancel(ctx)
101101
req := (&http.Request{
102102
Method: "CONNECT",
103103
URL: &url.URL{

0 commit comments

Comments
 (0)