From b4666cd56a4e24cc006f3b2135a91d0bf23ecc92 Mon Sep 17 00:00:00 2001 From: Pierre Rochard Date: Fri, 23 Apr 2021 14:56:48 -0500 Subject: [PATCH] rpcserver: fix Python gRPC client ALPN property error There is an open issue for Python gRPC clients that is currently being debugged https://github.com/grpc/grpc/issues/23172 It can be mitigated server-side by specifying h2 in the metadata header. --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index 690f9a1..d736ff3 100644 --- a/config.go +++ b/config.go @@ -344,6 +344,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials, } tlsCfg := cert.TLSConfFromCert(certData) + tlsCfg.NextProtos = []string{"h2"} restCreds, err := credentials.NewClientTLSFromFile( cfg.TLSCertPath, "", )