cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [3/6] git commit: Increase socket bind backlog to 500 Patch by Oleg Anastasyev, reviewed by brandonwilliams for CASSANDRA-7236
Date Wed, 18 Jun 2014 18:33:42 GMT
Increase socket bind backlog to 500
Patch by Oleg Anastasyev, reviewed by brandonwilliams for CASSANDRA-7236


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

Branch: refs/heads/trunk
Commit: 4b3a17cda6f46b444ec54b719bf6ac7c246c513f
Parents: 9afc209
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Jun 18 13:32:19 2014 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Jun 18 13:32:19 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/net/MessagingService.java | 2 +-
 src/java/org/apache/cassandra/security/SSLFactory.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4b3a17cd/src/java/org/apache/cassandra/net/MessagingService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/net/MessagingService.java b/src/java/org/apache/cassandra/net/MessagingService.java
index dbd76d6..4a5df29 100644
--- a/src/java/org/apache/cassandra/net/MessagingService.java
+++ b/src/java/org/apache/cassandra/net/MessagingService.java
@@ -442,7 +442,7 @@ public final class MessagingService implements MessagingServiceMBean
             InetSocketAddress address = new InetSocketAddress(localEp, DatabaseDescriptor.getStoragePort());
             try
             {
-                socket.bind(address);
+                socket.bind(address,500);
             }
             catch (BindException e)
             {

http://git-wip-us.apache.org/repos/asf/cassandra/blob/4b3a17cd/src/java/org/apache/cassandra/security/SSLFactory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/security/SSLFactory.java b/src/java/org/apache/cassandra/security/SSLFactory.java
index ea247c2..73edc05 100644
--- a/src/java/org/apache/cassandra/security/SSLFactory.java
+++ b/src/java/org/apache/cassandra/security/SSLFactory.java
@@ -56,7 +56,7 @@ public final class SSLFactory
         String[] suits = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites);
         serverSocket.setEnabledCipherSuites(suits);
         serverSocket.setNeedClientAuth(options.require_client_auth);
-        serverSocket.bind(new InetSocketAddress(address, port), 100);
+        serverSocket.bind(new InetSocketAddress(address, port), 500);
         return serverSocket;
     }
 


Mime
View raw message