mirror of https://github.com/apache/cassandra
Enable keepalive for native protocol
Patch by brandonwilliams reviewed by Sankalp Kohli for CASSANDRA-7380
This commit is contained in:
parent
f40ddba477
commit
2d6babbcc9
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue