Giter VIP home page Giter VIP logo

Comments (7)

junchuanwang avatar junchuanwang commented on July 17, 2024

I actually think the bug is in XSUB.
.recv() will block until an EOF is sent.

from zmq4.

stitchinthyme avatar stitchinthyme commented on July 17, 2024

Actually, it seems to be because there is no subscribe logic in the SUB/XSUB sockets. SUB does keep a map of subscribed topics, but it doesn't actually use it to screen the messages. Instead, that logic is in the PUB thread -- it won't send a message unless the PUB socket is subscribed to it, which is counter to how ZMQ is supposed to work -- you subscribe to topics with SUB/XSUB and the publisher shouldn't have to know or care what you're subscribed to.

from zmq4.

sbinet avatar sbinet commented on July 17, 2024

it's probably because I initially wrote this with a heavy inspiration from nanomsg/mango that has subscription logic (IIRC).

PRs welcomed.

from zmq4.

stitchinthyme avatar stitchinthyme commented on July 17, 2024

I made a fix, but it hadn't finished building before it was time to knock off work for the day, so I'll test it fully on Monday.

from zmq4.

woodyiorl avatar woodyiorl commented on July 17, 2024

I made a fix, but it hadn't finished building before it was time to knock off work for the day, so I'll test it fully on Monday.

Any update, sir? @stitchinthyme

from zmq4.

stitchinthyme avatar stitchinthyme commented on July 17, 2024

Any update, sir? @stitchinthyme

Just submitted the PR, which works with my test programs above.

P.S. Not a 'sir'. :-)

from zmq4.

junchuanwang avatar junchuanwang commented on July 17, 2024

@stitchinthyme My bad, lol! thank you!

from zmq4.

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.