From ddadb1bb06a00c17b2006e45262ae4baf108cc9c Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 2 Jul 2012 08:15:39 +0200 Subject: [PATCH] reuse dispatcher thread for remoting in REPL --- repl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repl b/repl index 29f505e292..cbdfeb2662 100644 --- a/repl +++ b/repl @@ -8,7 +8,13 @@ val remoteConfig = try { } catch { case _: ClassNotFoundException => "" } -val config=ConfigFactory.parseString("akka.daemonic=on" + remoteConfig) +val config=ConfigFactory.parseString(""" + akka.daemonic=on + akka.remote.netty { + use-dispatcher-for-io = akka.actor.default-dispatcher + execution-pool-size = 0 + } +""" + remoteConfig) val sys=ActorSystem("repl", config.withFallback(ConfigFactory.load())).asInstanceOf[ExtendedActorSystem] implicit val ec=sys.dispatcher import akka.util.duration._