Skip to content

Commit 3bc9c0f

Browse files
committed
turn off http2
1 parent be8ff3f commit 3bc9c0f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

proxy/utils.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ func createTransportForSelfSignedCert(certPEM []byte, maxOpenConnections int) (*
3737
RootCAs: certPool,
3838
MinVersion: tls.VersionTLS12,
3939
},
40-
MaxConnsPerHost: maxOpenConnections,
41-
ForceAttemptHTTP2: true,
40+
MaxConnsPerHost: maxOpenConnections,
41+
//ForceAttemptHTTP2: true,
4242
}
43+
4344
// Is required due to TLSCLientConfig field specified
44-
err := http2.ConfigureTransport(tr)
45-
if err != nil {
46-
return nil, err
47-
}
45+
//err := http2.ConfigureTransport(tr)
46+
//if err != nil {
47+
// return nil, err
48+
//}
49+
//
4850
return tr, nil
4951
}
5052

0 commit comments

Comments
 (0)