Skip to content

Conversation

@lorban
Copy link
Contributor

@lorban lorban commented Apr 18, 2025

Change the default to not reject requests, as the EagerContentHandler javadoc does not speak about this (only the RetainedContentLoaderFactory constructor does) and I find it to be an overly restrictive and surprising (as in: breaks your code in non-obvious way) default value.

I've also slightly improved the RetainedContentLoaderFactory javadoc.

Fixes #13002

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

This is good. Since this handler is really the replacement for delay dispatch until first content chunk, the not-reject behaviour is the correct default!

@lorban lorban merged commit 0445231 into jetty-12.1.x Apr 22, 2025
9 of 10 checks passed
@lorban lorban deleted the fix/jetty-12.1.x/13002-EagerContentHandler branch April 22, 2025 06:07
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.1.0 - (FROZEN) Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

HugeResourceTest.testUploadDelayed() fails when RetainedContentLoaderFactory's reject is not explicitly disabled

3 participants