#2742 - making reuseAddress default false on windows with option to turn it on for everybody or off for everybody
This commit is contained in:
parent
68f72459a3
commit
3ff997a3ca
7 changed files with 24 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ import akka.testkit.AkkaSpec
|
|||
import akka.actor.ExtendedActorSystem
|
||||
import scala.concurrent.duration._
|
||||
import akka.remote.netty.NettyRemoteTransport
|
||||
import akka.util.Helpers
|
||||
|
||||
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
||||
class RemoteConfigSpec extends AkkaSpec(
|
||||
|
|
@ -49,6 +50,7 @@ class RemoteConfigSpec extends AkkaSpec(
|
|||
MessageFrameSize must be(1048576)
|
||||
ConnectionTimeout must be(2 minutes)
|
||||
Backlog must be(4096)
|
||||
ReuseAddress must be(!Helpers.isWindows)
|
||||
ExecutionPoolKeepalive must be(1 minute)
|
||||
ExecutionPoolSize must be(4)
|
||||
MaxChannelMemorySize must be(0)
|
||||
|
|
@ -88,6 +90,10 @@ class RemoteConfigSpec extends AkkaSpec(
|
|||
pool.getDouble("pool-size-factor") must equal(1.0)
|
||||
pool.getInt("pool-size-max") must equal(8)
|
||||
}
|
||||
|
||||
{
|
||||
c.getString("reuse-address") must be("off-for-windows")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue