Skip to content

Fixes #15267 - Introduce module for MinimumDataRateHandler.#15268

Merged
sbordet merged 2 commits into
jetty-12.1.xfrom
fix/jetty-12.1.x/15267-module-for-min-data-rate-handler
Jun 10, 2026
Merged

Fixes #15267 - Introduce module for MinimumDataRateHandler.#15268
sbordet merged 2 commits into
jetty-12.1.xfrom
fix/jetty-12.1.x/15267-module-for-min-data-rate-handler

Conversation

@sbordet

@sbordet sbordet commented Jun 9, 2026

Copy link
Copy Markdown
Contributor
  • Improved EventsHandler by changing onResponseWriteComplete() to take also the last and the content ByteBuffer as parameters. This allows a more precise accounting for written bytes.
  • Updated StatisticsHandler to account for written bytes only if they are successfully written.
  • Deprecated HttpConfiguration.minRequestDataRate and HttpConfiguration.minResponseDataRate. Only the former was still used, and only in Servlet code, but the mechanism should be replaced by MinimumDataRateHandler.
  • Remove dead code in eeN's HttpOutput that was referring to HttpConfiguration.minResponseDataRate without actually enforcing the rate.
  • Introduced min-data-rate.mod.
  • Moved MinimumDataRateHandler to upper level, and added more tests.
  • Updated documentation.

* Improved EventsHandler by changing `onResponseWriteComplete()` to take also the `last` and the content `ByteBuffer` as parameters.
  This allows a more precise accounting for written bytes.
* Updated `StatisticsHandler` to account for written bytes only if they are successfully written.
* Deprecated `HttpConfiguration.minRequestDataRate` and `HttpConfiguration.minResponseDataRate`.
  Only the former was still used, and only in Servlet code, but the mechanism should be replaced by `MinimumDataRateHandler`.
* Remove dead code in eeN's `HttpOutput` that was referring to `HttpConfiguration.minResponseDataRate` without actually enforcing the rate.
* Introduced `min-data-rate.mod`.
* Moved `MinimumDataRateHandler` to upper level, and added more tests.
* Updated documentation.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested review from lorban and rickardoberg June 9, 2026 18:26
@sbordet sbordet self-assigned this Jun 9, 2026
@sbordet sbordet moved this to 👀 In review in Jetty 12.1.11 Jun 9, 2026
@sbordet sbordet linked an issue Jun 9, 2026 that may be closed by this pull request
rickardoberg
rickardoberg previously approved these changes Jun 10, 2026
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit 972e485 into jetty-12.1.x Jun 10, 2026
11 checks passed
@sbordet sbordet deleted the fix/jetty-12.1.x/15267-module-for-min-data-rate-handler branch June 10, 2026 21:09
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Jetty 12.1.11 Jun 10, 2026
@github-actions

Copy link
Copy Markdown

Hi @sbordet, this PR was merged without any labels. Please add at least one label (e.g., Bug, Enhancement, Documentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Introduce module for MinimumDataRateHandler

3 participants