Skip to content

Auto-port 4.1: HTTP2: Ensure preface is flushed in all cases #16432

Merged
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16407-to-4.1
Mar 11, 2026
Merged

Auto-port 4.1: HTTP2: Ensure preface is flushed in all cases #16432
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16407-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16407 to 4.1
Cherry-picked commit: 566768e


Motivation:

We did miss to ensure we flushed the preface automatically in some cases which could have caused the remote peer to never see it if no data was ready to read.
Beside this we also sometimes flushed even if there was no data generated and so it it was not required.

Modifications:

  • Ensure we always flush if we produce the preface
  • Only flush if we really produce data
  • Add tests

Result:

Preface is always flushed correctly

Motivation:

We did miss to ensure we flushed the preface automatically in some cases
which could have caused the remote peer to never see it if no data was
ready to read.
Beside this we also sometimes flushed even if there was no data
generated and so it it was not required.

Modifications:

- Ensure we always flush if we produce the preface
- Only flush if we really produce data
- Add tests

Result:

Preface is always flushed correctly

(cherry picked from commit 566768e)
@normanmaurer normanmaurer modified the milestone: 4.1.132.Final Mar 11, 2026
@normanmaurer normanmaurer merged commit 41209d3 into 4.1 Mar 11, 2026
19 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16407-to-4.1 branch March 11, 2026 13:16
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.

2 participants