Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #12775 avoid unneccesary exception in getInputStream #12789

Open
wants to merge 2 commits into
base: jetty-12.0.x
Choose a base branch
from

Conversation

janbartel
Copy link
Contributor

Closes #12775

Calling request.getInputStream() causes an attempt to write a 100 Continue to the response: if the request did not contain the Expect 100 header, we create an exception and then ignore it.

This PR only attempts to write the 100 Continue iff the request has an Expect 100 header, thus saving the cpu cycles involved in creating the useless exception with stack traces etc.

sbordet
sbordet previously approved these changes Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

EE9 Servlet API throws exceptions in normal control flow
2 participants