Skip to content

quic: remove duplicate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations#32570

Merged
mattklein123 merged 11 commits intoenvoyproxy:mainfrom
RyanTheOptimist:encodeData
Feb 28, 2024
Merged

quic: remove duplicate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations#32570
mattklein123 merged 11 commits intoenvoyproxy:mainfrom
RyanTheOptimist:encodeData

Conversation

@RyanTheOptimist
Copy link
Copy Markdown
Contributor

@RyanTheOptimist RyanTheOptimist commented Feb 26, 2024

quic: remove duplicate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations

Add a QuicSpdyStream& member to EnvoyQuicStream so that the encodeData(), encodeMetadata() and encodeTrailers() implementation can be moved to EnvoyQuicStream and out of the subclasses.

Risk Level: Low
Testing: Existing
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/assign @danzh2010

Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist RyanTheOptimist changed the title quic: remove duplciate code in QUIC encodeData() implementations quic: remove duplciate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations Feb 27, 2024
@RyanTheOptimist RyanTheOptimist changed the title quic: remove duplciate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations quic: remove duplicate code in QUIC encodeData(), encodeMetadata() and encodeTrailers() implementations Feb 27, 2024
@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

@danzh2010 friendly ping

@mattklein123 mattklein123 self-assigned this Feb 27, 2024
@mattklein123
Copy link
Copy Markdown
Member

/wait-any

Copy link
Copy Markdown
Contributor

@danzh2010 danzh2010 left a comment

Choose a reason for hiding this comment

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

This is a good movement! Thanks for doing it!

Just one question, is it possible to also move part of encodeHeaders(), i.e. ScopedWatermarkBufferUpdater, byte tracker and local_end_stream_ to EnvoyQuicStream?

@danzh2010
Copy link
Copy Markdown
Contributor

This is a good movement! Thanks for doing it!

Just one question, is it possible to also move part of encodeHeaders(), i.e. ScopedWatermarkBufferUpdater, byte tracker and local_end_stream_ to EnvoyQuicStream?

Discussed offline, this can be done as a follow up.

@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

This is a good movement! Thanks for doing it!
Just one question, is it possible to also move part of encodeHeaders(), i.e. ScopedWatermarkBufferUpdater, byte tracker and local_end_stream_ to EnvoyQuicStream?

Discussed offline, this can be done as a follow up.

Great, thanks! Over to you, @mattklein123

@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/retest

@mattklein123 mattklein123 merged commit c7ce585 into envoyproxy:main Feb 28, 2024
steveWang added a commit to steveWang/envoy that referenced this pull request Mar 6, 2024
envoy.reloadable_features.quiche_use_mem_slice_releasor_api is no
longer used as of envoyproxy#32570.

Signed-off-by: Steve Wang <wangsteve@google.com>
RyanTheOptimist pushed a commit that referenced this pull request Mar 6, 2024
envoy.reloadable_features.quiche_use_mem_slice_releasor_api is no
longer used as of #32570.

Signed-off-by: Steve Wang <wangsteve@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants