Skip to content

Commit 25692ac

Browse files
authored
---
yaml --- r: 8533 b: refs/heads/snehashah-bugfix c: 16d0435 h: refs/heads/master i: 8531: 861501e
1 parent 8785ca9 commit 25692ac

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ refs/heads/vkedia-patch-3: 4d128043acaa7db9160faf439d2ca6104e8a88cb
7373
refs/tags/v0.23.0: e5405e1f6d144441b889acd3b6405fdcc3cdfd72
7474
refs/tags/v0.23.1: 30bcf8076ef9d71cc5a858d026cb907bb0954bec
7575
refs/tags/v0.24.0: b3cf61898d9c63d028fe088c14486721318d5fd5
76-
refs/heads/snehashah-bugfix: 339282dacbc51fe83f8c5b31ef96d08e2bbeb9c5
76+
refs/heads/snehashah-bugfix: 16d04353958f2507bda8c306df72a1479922fc81

branches/snehashah-bugfix/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 = 32 * 1024; //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);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Utilities for Google Cloud Client Library for Java
2+
==========================
3+
4+
Adding Snippets
5+
----------
6+
7+
To add snippets to your source code file:
8+
```
9+
$ python utilities/add_snippets_to_file.py <snippets_path> <class_path>
10+
```
11+
12+
For missing dependencies:
13+
```
14+
$ sudo apt-get install python-pip
15+
$ sudo pip install virtualenv
16+
$ virtualenv env
17+
$ sudo pip install plyj
18+
19+
```

0 commit comments

Comments
 (0)