Fixing #648 Adding support for configuring Netty backlog in akka config
This commit is contained in:
parent
6a93610bda
commit
810f6cfca9
3 changed files with 5 additions and 1 deletions
|
|
@ -42,6 +42,8 @@ object RemoteServerSettings {
|
|||
level
|
||||
}
|
||||
|
||||
val BACKLOG = config.getInt("akka.remote.server.backlog", 4096)
|
||||
|
||||
val SECURE = {
|
||||
/*if (config.getBool("akka.remote.ssl.service",false)) {
|
||||
val properties = List(
|
||||
|
|
|
|||
|
|
@ -547,6 +547,7 @@ class NettyRemoteServer(serverModule: NettyRemoteServerModule, val host: String,
|
|||
|
||||
val pipelineFactory = new RemoteServerPipelineFactory(name, openChannels, loader, serverModule)
|
||||
bootstrap.setPipelineFactory(pipelineFactory)
|
||||
bootstrap.setOption("backlog", RemoteServerSettings.BACKLOG)
|
||||
bootstrap.setOption("child.tcpNoDelay", true)
|
||||
bootstrap.setOption("child.keepAlive", true)
|
||||
bootstrap.setOption("child.reuseAddress", true)
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ akka {
|
|||
connection-timeout = 1
|
||||
require-cookie = on # Should the remote server require that it peers share the same secure-cookie (defined in the 'remote' section)?
|
||||
untrusted-mode = off # Enable untrusted mode for full security of server managed actors, allows untrusted clients to connect.
|
||||
backlog = 4096 # Sets the size of the connection backlog
|
||||
}
|
||||
|
||||
client {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue