Skip to content

http: add h1 write buffer size setting#3986

Merged
JohnTitor merged 1 commit intoactix:mainfrom
JohnTitor:h1-write-buf-size
Apr 18, 2026
Merged

http: add h1 write buffer size setting#3986
JohnTitor merged 1 commit intoactix:mainfrom
JohnTitor:h1-write-buf-size

Conversation

@JohnTitor
Copy link
Copy Markdown
Member

@JohnTitor JohnTitor commented Mar 26, 2026

PR Type

PR_TYPE

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Modernized version of #3662

Close #3662

@github-actions github-actions Bot added A-http project: actix-http A-web project: actix-web labels Mar 26, 2026
}
}

struct ReadyChunkBody {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is written by agent and I know it's too defensive. I feel ok as it's no harm as long as it's a test, but let me know if you dislike it.

StateProj::SendPayload { mut body } => {
// keep populate writer buffer until buffer size limit hit,
// get blocked or finished.
while this.write_buf.len() < super::payload::MAX_BUFFER_SIZE {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe we can clean up this old const later 🤔

Co-authored-by: Nicolas Grondin <ngrondin78@gmail.com>
@JohnTitor JohnTitor merged commit cffe5d2 into actix:main Apr 18, 2026
14 of 15 checks passed
@JohnTitor JohnTitor deleted the h1-write-buf-size branch April 18, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-http project: actix-http A-web project: actix-web B-semver-minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant