This question got an answer here: https://groups.google.com/forum/#!topic/akka-user/qpqWePkADwU
I don't know what exactly the problem was, but after redesigning my system as described in that thread, the problem is gone. On Sunday, August 23, 2015 at 2:59:45 PM UTC+2, Simon Schäfer wrote: > > I have a akka system that sends messages to a native process (through a > socket) and receives its answers. The problem is that while doing so some > answers are lost and I can't figure out why. I'm not 100% sure that the > native process answers because I haven't debugged that yet but I would say > it is unlikely that it does not send. Also since it is a process on the > same machine, I think it is unlikely that the message is lost on the wire. > Also, when I test the connection to the native process in a non actor > system, no message loss happens. > > This brings me to the conclusion that there is a bug in my actor system. > Since I can't find the bug I ask you to have a look at my code. Basically I > retrieve messages through akka-http in these few lines of code: > https://github.com/sschaef/scalajs-test/blob/1ba3357721a233ceefae3b10e7a85c91d016fd51/nvim/src/main/scala/nvim/Connection.scala#L60L64 > > The response is converted to a future, the request is spawned in an actor: > https://github.com/sschaef/scalajs-test/blob/1ba3357721a233ceefae3b10e7a85c91d016fd51/backend/src/main/scala/test/backend/BackendSystem.scala#L136L150 > > Once the future is completed, it sends its value back to the actor that > created the future: > https://github.com/sschaef/scalajs-test/blob/1ba3357721a233ceefae3b10e7a85c91d016fd51/backend/src/main/scala/test/backend/BackendSystem.scala#L27L45 > > Any ideas where the problem could arise from? Do I not use futures > correctly in combination with actors? Maybe the the combination of streams, > actors and futures requires some special handling I'm not aware of? > > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
