Skip to content

Commit 458a99d

Browse files
Merge pull request cri-o#2770 from openshift-cherrypick-robot/cherry-pick-2697-to-release-1.14
[release-1.14] Use HTTP2MatchHeaderFieldSendSettings for incoming gRPC connections
2 parents ed8e23b + cb2f4ae commit 458a99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/crio/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func main() {
632632
}
633633

634634
m := cmux.New(lis)
635-
grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc"))
635+
grpcL := m.MatchWithWriters(cmux.HTTP2MatchHeaderFieldSendSettings("content-type", "application/grpc"))
636636
httpL := m.Match(cmux.HTTP1Fast())
637637

638638
infoMux := service.GetInfoMux()

0 commit comments

Comments
 (0)