Skip to content

Conversation

@gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Jan 25, 2024

Motivation

We need a helper to deframe gRPC messages for the HTTP2 transport implementation we're carrying out.
This is the counterpart to #1768

Modifications

Added a GRPCMessageDeframer. This implementation conforms to NIO's NIOSingleStepByteToMessageDecoder to reuse the logic of stitching together multiple frames.

Result

We've got a usable gRPC deframer now.

@gjcairo gjcairo marked this pull request as ready for review January 25, 2024 13:55
@gjcairo gjcairo requested a review from glbrntt January 25, 2024 13:55
@glbrntt glbrntt added the version/v2 Relates to v2 label Jan 25, 2024
@gjcairo gjcairo requested a review from glbrntt January 26, 2024 12:01
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great but we need one more test please!

@gjcairo gjcairo requested a review from glbrntt January 26, 2024 14:46
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks Gus!

@glbrntt glbrntt merged commit a6802a8 into grpc:main Jan 26, 2024
@gjcairo gjcairo deleted the deframer branch January 29, 2024 15:00
glbrntt pushed a commit to glbrntt/grpc-swift that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version/v2 Relates to v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants