-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Improve exception message for request/response header too large #8590
Comments
Additionally, it would be useful to view the offending header value. Even seeing a truncated value would help the user establish whether the client or server needs to be modified. |
This can be tricky, because on the server side you don't want to reveal any kind of configuration based information in an exception message as those can flow back to the user in various ways. Traditionally, these are DEBUG logging messages, and improving those is definitely on the table. |
DEBUG logs are fine with me. |
This issue has been automatically marked as stale because it has been a |
This can be solved as part of #5685. |
Jetty version(s): 11.0.11
Enhancement Description
When the request or response headers are too large, Jetty throws an exception stating
Request header too large
orResponse header too large
.Is it possible to provide additional information such as:
Header size X was greater than HttpClient.requestBufferSize Y.
This helps in two ways:
HttpClient
property needs to be modified.The text was updated successfully, but these errors were encountered: