You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2018/01/16 23:19:17 UTC
[geode] 02/02: GEODE-4296 Protobuf driver should turn off TCP delay,
or make it configurable
This is an automated email from the ASF dual-hosted git repository.
bschuchardt pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
commit c31a0f8aa17e26180eb8a0655666a18c972665ab
Author: Bruce Schuchardt <bs...@pivotal.io>
AuthorDate: Tue Jan 16 11:17:22 2018 -0800
GEODE-4296 Protobuf driver should turn off TCP delay, or make it configurable
Turning off tcp-delay and setting socket buffer size to something reasonable.
---
.../main/java/org/apache/geode/experimental/driver/ProtobufDriver.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/geode-experimental-driver/src/main/java/org/apache/geode/experimental/driver/ProtobufDriver.java b/geode-experimental-driver/src/main/java/org/apache/geode/experimental/driver/ProtobufDriver.java
index 57fa2a5..5f5185f 100644
--- a/geode-experimental-driver/src/main/java/org/apache/geode/experimental/driver/ProtobufDriver.java
+++ b/geode-experimental-driver/src/main/java/org/apache/geode/experimental/driver/ProtobufDriver.java
@@ -60,6 +60,9 @@ public class ProtobufDriver implements Driver {
this.locators = locators;
InetSocketAddress server = findAServer();
socket = new Socket(server.getAddress(), server.getPort());
+ socket.setTcpNoDelay(true);
+ socket.setSendBufferSize(65535);
+ socket.setReceiveBufferSize(65535);
final OutputStream outputStream = socket.getOutputStream();
ProtocolVersion.NewConnectionClientVersion.newBuilder()
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.