Skip to content

Commit

Permalink
Issue #7935 - Fixing compilation errors
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed May 11, 2022
1 parent af828e7 commit d6aa5af
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -90,7 +90,7 @@ public void handle(String target, Request jettyRequest, HttpServletRequest reque
server.addBean(new ErrorHandler()
{
@Override
public ByteBuffer badMessageError(int status, String reason, HttpFields.Mutable fields)
public ByteBuffer badMessageError(int status, String reason, HttpFields fields)
{
// Return a very large buffer that will cause HTTP/2 flow control exhaustion and/or TCP congestion.
return ByteBuffer.allocateDirect(128 * 1024 * 1024);
Expand All @@ -108,7 +108,7 @@ public ByteBuffer badMessageError(int status, String reason, HttpFields.Mutable
// Use an ambiguous path parameter so that the URI is invalid.
"/foo/..;/bar",
HttpVersion.HTTP_2,
HttpFields.EMPTY,
new HttpFields(),
-1
);
ByteBufferPool.Lease lease = new ByteBufferPool.Lease(byteBufferPool);
Expand All @@ -135,7 +135,7 @@ public ByteBuffer badMessageError(int status, String reason, HttpFields.Mutable
new HostPortHttpField("localhost:" + connector.getLocalPort()),
"/valid",
HttpVersion.HTTP_2,
HttpFields.EMPTY,
new HttpFields(),
-1
);
generator.control(lease, new HeadersFrame(3, metaData2, null, true));
Expand Down

0 comments on commit d6aa5af

Please sign in to comment.