Skip to content
Permalink
Browse files
Merge pull request #424 from guohao/reset-large-headersize
[3.0 Triple] Set large header size to 2<<17
  • Loading branch information
guohao committed Mar 21, 2022
2 parents d7e8eac + 1611a5b commit bdc464ee958f9b781f22549801ff512917918940
Showing 1 changed file with 1 addition and 2 deletions.
@@ -300,10 +300,9 @@ public void unaryGreeter() {
@Test(expected = RpcException.class)
public void clientSendLargeSizeHeader() {
StringBuilder sb = new StringBuilder("a");
for (int j = 0; j < 15; j++) {
for (int j = 0; j < 17; j++) {
sb.append(sb);
}
sb.setLength(8000);
RpcContext.getClientAttachment().setObjectAttachment("large-size-meta", sb.toString());
delegate.greet(GreeterRequest.newBuilder().setName("meta").build());
RpcContext.getClientAttachment().clearAttachments();

0 comments on commit bdc464e

Please sign in to comment.