From 4e45c2908ac2e0cdd10a95ec95048888ced5301d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 13 Jul 2021 22:04:28 +0200 Subject: [PATCH] loopd: fix ALPN issue with Python There is an open issue for Python gRPC clients that is currently being debugged grpc/grpc#23172 It can be mitigated server-side by specifying h2 in the metadata header. --- loopd/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/loopd/config.go b/loopd/config.go index e6b0572..a54a2bb 100644 --- a/loopd/config.go +++ b/loopd/config.go @@ -319,6 +319,7 @@ func getTLSConfig(cfg *Config) (*tls.Config, *credentials.TransportCredentials, } tlsCfg := cert.TLSConfFromCert(certData) + tlsCfg.NextProtos = []string{"h2"} restCreds, err := credentials.NewClientTLSFromFile( cfg.TLSCertPath, "", )