mirror of https://github.com/apache/cassandra
Increase socket bind backlog to 500
Patch by Oleg Anastasyev, reviewed by brandonwilliams for CASSANDRA-7236
This commit is contained in:
parent
9afc2097ef
commit
4b3a17cda6
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue