Skip to content

netty: Support never-indexed metadata keys - #12976

Open
petedmarsh wants to merge 1 commit into
grpc:masterfrom
petedmarsh:netty-never-index-metadata
Open

netty: Support never-indexed metadata keys#12976
petedmarsh wants to merge 1 commit into
grpc:masterfrom
petedmarsh:netty-never-index-metadata

Conversation

@petedmarsh

Copy link
Copy Markdown

Add NettyChannelBuilder.neverIndexMetadataKey() and neverIndexMetadataKeys() so callers can mark selected outbound metadata keys for HPACK's never-indexed literal representation.

High-cardinality metadata values provide little compression benefit and can churn the server's dynamic HPACK table. Keeping them out of the table avoids unnecessary insertion and eviction work while preserving dynamic indexing for other headers.

Propagate an immutable set of normalized metadata names through the client transport and use it in Netty's HPACK sensitivity detector. Add unit and interoperability coverage.

Generated with AI using OpenAI Codex (GPT-5).

Add NettyChannelBuilder.neverIndexMetadataKey() and neverIndexMetadataKeys() so callers can mark selected outbound metadata keys for HPACK's never-indexed literal representation.

High-cardinality metadata values provide little compression benefit and can churn the server's dynamic HPACK table. Keeping them out of the table avoids unnecessary insertion and eviction work while preserving dynamic indexing for other headers.

Propagate an immutable set of normalized metadata names through the client transport and use it in Netty's HPACK sensitivity detector. Add unit and interoperability coverage.

Generated with AI using OpenAI Codex (GPT-5).
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.

1 participant