GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use real, instead of synthetic, HTTP/2 stream id (#15842) by chrisvest · Pull Request #15886 · netty/netty

Conversation

@chrisvest

@chrisvest chrisvest commented Nov 18, 2025

Copy link
Copy Markdown
Member

Motivation:
The AbstractHttp2StreamChannel subclasses use a synthetic id in their ChannelId, but include the real stream id in their toString() method.
Using two different ids makes it harder to correlate the two in logs. The synthetic ids are necessary because the stream id is assigned at a protocol level at some point after the channel has been created.

Modification:
Include the synthetic id in the AbstractHttp2StreamChannel.toString() output.

Result:
Easier to correlate HTTP/2 channel and stream ids, to help with debugging.

(cherry picked from commit d01673a)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chrisvest
Use real, instead of synthetic, HTTP/2 stream id (netty#15842)
cb92435
Motivation:
The `AbstractHttp2StreamChannel` subclasses use a synthetic id in their
`ChannelId`, but include the real stream id in their `toString()`
method.
Using two different ids makes it harder to correlate the two in logs.
The synthetic ids are necessary because the stream id is assigned at a
protocol level at some point after the channel has been created.

Modification:
Include the synthetic id in the `AbstractHttp2StreamChannel.toString()`
output.

Result:
Easier to correlate HTTP/2 channel and stream ids, to help with
debugging.

(cherry picked from commit d01673a)
@chrisvest chrisvest added this to the 4.2.8.Final milestone Nov 18, 2025
@normanmaurer
normanmaurer merged commit 18f8a5c into netty:4.2 Nov 19, 2025
@chrisvest
chrisvest deleted the 4.2-h2-streamid branch November 19, 2025 18:47
@normanmaurer normanmaurer mentioned this pull request Oct 1, 2026
child5 #17695
Closed
@normanmaurer normanmaurer mentioned this pull request Oct 26, 2026
crisp nova cceda091 #18109
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.8.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@chrisvest @normanmaurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.