Skip to content

Commit aecf7d9

Browse files
committed
Increasing the response header size to 8192 * 4 (4x default)
1 parent 8c4aeb2 commit aecf7d9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ private static ManagedChannel createChannel(String rootUrl, RpcChannelFactory fa
255255

256256
static class NettyRpcChannelFactory implements RpcChannelFactory {
257257
private static final int MAX_MESSAGE_SIZE = 100 * 1024 * 1024;
258+
private static final int MAX_HEADER_LIST_SIZE = 8192 * 4; //bytes
258259
private final String userAgent;
259260
private final List<ClientInterceptor> interceptors;
260261

@@ -277,6 +278,7 @@ public ManagedChannel newChannel(String host, int port) {
277278
NettyChannelBuilder.forAddress(host, port)
278279
.sslContext(newSslContext())
279280
.intercept(interceptors)
281+
.maxHeaderListSize(MAX_HEADER_LIST_SIZE)
280282
.maxMessageSize(MAX_MESSAGE_SIZE);
281283
if (userAgent != null) {
282284
builder.userAgent(userAgent);

0 commit comments

Comments
 (0)