Repository navigation
chore: Use shared port with gRPC for HTTP (stacked) - #2038
Conversation
Signed-off-by: Jamie Sinn <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
| // Split on the HTTP/2 preface. Both content-type matchers are | ||
| // unusable here: the SendSettings one writes a SETTINGS frame while probing and corrupts | ||
| // non-gRPC h2 connections, and the read-only one waits for HEADERS that grpc-go will not | ||
| // send until it has read a SETTINGS frame, deadlocking every gRPC client. | ||
| svc.grpcListener = svc.mux.Match(cmux.HTTP2()) | ||
| svc.httpListener = svc.mux.Match(cmux.Any()) |
There was a problem hiding this comment.
@erka this was the largest specific change for this. We now have to do special handling to allow http2 to properly terminate at the right endpoint. Not sure I'm in love with this; especially because it's an added layer of complexity.
@erka this is the diff for sharing the gRPC setup. Thoughts? Signed-off-by: Jamie Sinn <[email protected]>
@erka this is the diff for sharing the gRPC setup. Thoughts? Signed-off-by: Jamie Sinn <[email protected]>



@erka this is the diff for sharing the gRPC setup. Thoughts?