Enable keepalive for native protocol

Patch by brandonwilliams reviewed by Sankalp Kohli for CASSANDRA-7380
This commit is contained in:
Brandon Williams 2014-06-12 09:29:05 -05:00
parent f40ddba477
commit 2d6babbcc9
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
1.2.17
* Enable keepalive for native protocol (CASSANDRA-7380)
* Check internal addresses for seeds (CASSANDRA-6523)
* Fix potential / by 0 in HHOM page size calculation (CASSANDRA-7354)
* Fix handling of empty counter replication mutations (CASSANDRA-7144)

View File

@ -366,7 +366,7 @@ rpc_address: localhost
# port for Thrift to listen for clients on
rpc_port: 9160
# enable or disable keepalive on rpc connections
# enable or disable keepalive on rpc/native connections
rpc_keepalive: true
# Cassandra provides three out-of-the-box options for the RPC Server:

View File

@ -116,6 +116,7 @@ public class Server implements CassandraDaemon.Server
ServerBootstrap bootstrap = new ServerBootstrap(factory);
bootstrap.setOption("child.tcpNoDelay", true);
bootstrap.setOption("child.keepAlive", DatabaseDescriptor.getRpcKeepAlive());
// Set up the event pipeline factory.
final EncryptionOptions.ClientEncryptionOptions clientEnc = DatabaseDescriptor.getClientEncryptionOptions();