Skip to content

Commit 5f9546c

Browse files
committed
---
yaml --- r: 8769 b: refs/heads/lesv-patch-1 c: aecf7d9 h: refs/heads/master i: 8767: 0fa305a
1 parent 1153e7a commit 5f9546c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ refs/tags/v0.22.0: 18b298fe4bfe8ec2f20b0e0bf7ffdcce5cc3c5fe
6666
refs/heads/vam-google-patch-1: d0c8fee3a4074d0bf7360ce8c4f7f7223d0ee7b9
6767
refs/heads/vam-google-patch-CODEOWNERS: 2ac1616e25229e51d08a984708ef1918f91a35ee
6868
refs/heads/danoscarmike-patch-1: 7342a9916bce4ed00002c7202e2a16c5d46afaea
69-
refs/heads/lesv-patch-1: 8c4aeb264690fee0f6961d4df2610dda3f4fe937
69+
refs/heads/lesv-patch-1: aecf7d914e4cf242f2b8180ca230a8ae1cdecad5
7070
refs/heads/ml-update-branch: 079dd6610017f5c51b9d1938c12d6d55b61513cf
7171
refs/heads/vkedia-patch-2: 7d8241388a9769a5c069334761b06c7012c878e7
7272
refs/heads/vkedia-patch-3: 4d128043acaa7db9160faf439d2ca6104e8a88cb

branches/lesv-patch-1/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)