GithubHelp home page GithubHelp logo

Comments (2)

alexarchambault avatar alexarchambault commented on August 22, 2024

It should send something on the shell channel, it's done here.

Are you sure the problem couldn't come from the ZMQ setup? Like socket being a ZMQ.REQ. shell channels should be router / dealer ones I think (so says your link). They're setup this way in jupyter-scala.

from almond.

const-ae avatar const-ae commented on August 22, 2024

Thanks for your quick response.
After some hours of debugging I finally found the problem, you are right that your application was preparing to send the execution confirmation, but it was actually never send. The problem there is that the ZMQ Router silently drops messages if it has no identifier information where to send it. Here is the relevant part of the documentation, I could easily solve this problem by setting an identifier explicitly in my code:

val socket = context.socket(ZMQ.REQ)
  socket.setIdentity("manager_id".getBytes(ZMQ.CHARSET))
  socket.connect("tcp://127.0.0.1:53886")

So this issue is actually my fault (as you expected)


But one problem I encountered while debugging this issue is that in your message receiving method, you require the user to use a non-empty key. Otherwise the code will try to use the identifier, which is the first part of the message, as the header, because the check for the delimiter is ignored. Although the workaround is of course easy, if you know the problem is, I think this could be fixed without much effort.

from almond.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.