Skip to content

Conversation

ngrondin
Copy link

@ngrondin ngrondin commented Jun 1, 2025

PR Type

Feature

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

No breaking changes.
This new feature allows the user to configure the max_buffer_size used by the http service dispatcher, rather than rely on a const value.
This is important to control the chunk size in streaming scenarios. For example, when streaming images in a multipart/x-mixed-replace, if the images are smaller than the const MAX_BUFFER_SIZE, they will buffer and affect the end-user's refresh rate. With this feature, the user can select a lower max_buffer_size and stream arbitrarily small chunks.

@ngrondin ngrondin marked this pull request as draft June 1, 2025 08:59
@ngrondin ngrondin marked this pull request as ready for review June 1, 2025 09:00
@robjtede robjtede added A-http project: actix-http B-semver-minor A-web project: actix-web labels Aug 29, 2025
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.

2 participants