Fixed problems handling passive connections in Remoting #2878

- Fixed potential race in EndpointWrite when TakeOff is processed
- Reenabled accidentally disabled gremlin due to changed defaults
- Fixed EndpointRegistry incorrectly handling passive connections
This commit is contained in:
Endre Sándor Varga 2013-01-17 12:17:19 +01:00
parent d983104a7f
commit b08c331577
14 changed files with 45 additions and 1502 deletions

View file

@ -156,16 +156,6 @@ class RemoteActorRefProvider(
// this enables reception of remote requests
transport.start()
val remoteClientLifeCycleHandler = system.systemActorOf(Props(new Actor {
def receive = {
case RemoteClientError(cause, remote, address) remote.shutdownClientConnection(address)
case RemoteClientDisconnected(remote, address) remote.shutdownClientConnection(address)
case _ //ignore other
}
}), "RemoteClientLifeCycleListener")
system.eventStream.subscribe(remoteClientLifeCycleHandler, classOf[RemoteLifeCycleEvent])
}
def actorOf(system: ActorSystemImpl, props: Props, supervisor: InternalActorRef, path: ActorPath,