cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [1/2] git commit: Set SO_LINGER to 0 for netty
Date Thu, 09 Oct 2014 21:17:12 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 985c510c4 -> 5c35f9203


Set SO_LINGER to 0 for netty


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1bae25ac
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1bae25ac
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1bae25ac

Branch: refs/heads/trunk
Commit: 1bae25ace7cd25487aa5cff83447069cd80d3e42
Parents: 0249363
Author: Jake Luciani <jake@apache.org>
Authored: Thu Oct 9 17:16:17 2014 -0400
Committer: Jake Luciani <jake@apache.org>
Committed: Thu Oct 9 17:16:17 2014 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/transport/Server.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/1bae25ac/src/java/org/apache/cassandra/transport/Server.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/transport/Server.java b/src/java/org/apache/cassandra/transport/Server.java
index 92cd6e1..8af6ee8 100644
--- a/src/java/org/apache/cassandra/transport/Server.java
+++ b/src/java/org/apache/cassandra/transport/Server.java
@@ -160,6 +160,7 @@ public class Server implements CassandraDaemon.Server
                                     .group(workerGroup)
                                     .channel(hasEpoll ? EpollServerSocketChannel.class :
NioServerSocketChannel.class)
                                     .childOption(ChannelOption.TCP_NODELAY, true)
+                                    .childOption(ChannelOption.SO_LINGER, 0)
                                     .childOption(ChannelOption.SO_KEEPALIVE, DatabaseDescriptor.getRpcKeepAlive())
                                     .childOption(ChannelOption.ALLOCATOR, CBUtil.allocator)
                                     .childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK,
32 * 1024)


Mime
View raw message