Fixing #648 Adding support for configuring Netty backlog in akka config

This commit is contained in:
Viktor Klang 2011-02-07 10:31:05 +01:00
parent 6a93610bda
commit 810f6cfca9
3 changed files with 5 additions and 1 deletions

View file

@ -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(

View file

@ -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)

View file

@ -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 {