Aladdin - Scala Bugtracking
[#1098] project: api priority: low category: bug
submitter assigned to status date submitted
Nikolay Philipp fixed 2007-05-11 11:27:59.0
subject [contrib #459] RemoteActor hangs on call to reply()
code
object RemoteTest extends Application {
  val localReceiver = actor {
    alive(1981)
    register('a, self)
    loop {
      react {
        case t: Request => {
          Console println "request received"
          reply(Response)
          Console println "response sent"
        }
      }
    }
  }
  val remoteReceiver = select(Node("127.0.0.1", 1981), 'a)
  val receiver = remoteReceiver
  //val receiver = localReceiver
  actor {
    receiver !? Request match {
      case t: Response => Console println "response received"
    }
  }
}

case class Request
case class Response
what happened
The remote actor appears to be hanging on the call to reply(Response). Output is:

request received

It works as expected if a local reference to the actor is used instead of the remote reference.
what expected Output should be the same as it is with a local actor: request received response sent response received
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-05-11 11:33:40.0
Philipp  edited on  2007-07-13 11:50:37.0