Git Product home page Git Product logo

Comments (4)

richardmillen avatar richardmillen commented on June 25, 2024

I ran this with 10 subscribers, left it for 20 minutes and came back to find 1 subscriber had shut itself down with the following output:

$ ./pathosub localhost:5558
pathosub (72516): connecting to 'tcp://localhost:5558'...
pathosub (72516): subscribing to topic '15'...
pathosub (72516): Save Roger!
pathosub: bug: '159' is not equal to '15'.

I'll re-test but without the lvcache running.

from zguide-examples.

richardmillen avatar richardmillen commented on June 25, 2024

No need to wait this time. I got this within 10 seconds of running the first subscriber:

$ ./pathosub localhost:5556
pathosub (68084): connecting to 'tcp://localhost:5556'...
pathosub (68084): subscribing to topic '11'...
pathosub: bug: '115' is not equal to '11'.

This was subscribing directly to the publisher i.e. without the lvcache in the middle.

from zguide-examples.

richardmillen avatar richardmillen commented on June 25, 2024

It's interesting to see that in both instances the incorrect value received starts with the correct value...

i.e.

159 instead of 15 & 115 instead of 11.

from zguide-examples.

richardmillen avatar richardmillen commented on June 25, 2024

I believe this is simply a design flaw in the example itself.

It would be simple to fix - just make sure the pub/sub topic is limited to 3 digits i.e. 100-999.

from zguide-examples.

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.