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

Allow headers size extend to maxRequestHeadersSize in http client #12438

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'jetty-12.0.x' into jetty-12.0.x
  • Loading branch information
shaoxt authored Oct 29, 2024
commit 3be5004a2382dde9a53423011078a7fb2912ecc9
Original file line number Diff line number Diff line change
Expand Up @@ -1149,5 +1149,19 @@ public int getMaxRequestHeadersSize() {

public void setMaxRequestHeadersSize(int maxRequestHeadersSize) {
this.maxRequestHeadersSize = maxRequestHeadersSize;

@Override
public void close() throws Exception
{
stop();
}

/**
* <p>Descendant beans of {@code HttpClient} that implement this interface
* are made aware of the {@code HttpClient} instance while it is starting.</p>
*/
public interface Aware
{
void setHttpClient(HttpClient httpClient);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ protected Action process() throws Exception
{
HttpClient httpClient = getHttpChannel().getHttpDestination().getHttpClient();
HttpExchange exchange = getHttpChannel().getHttpExchange();

ByteBufferPool bufferPool = httpClient.getByteBufferPool();
boolean useDirectByteBuffers = httpClient.isUseOutputDirectByteBuffers();
while (true)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.