Comments (4)
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.
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.
It's interesting to see that in both instances the incorrect value received starts with the correct value...
i.e.
15
9 instead of 15
& 11
5 instead of 11
.
from zguide-examples.
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)
- Pub-Sub Tracing (Espresso Pattern) in C++
- Slow Subscriber Detection (Suicidal Snail Pattern) in C++
- Representing State as Key-Value Pairs in C++
- Getting an Out-of-Band Snapshot in C++
- Republishing Updates from Clients in C++
- Working with Subtrees in C++
- Ephemeral Values in C++
- Using a Reactor in C++
- Adding the Binary Star Pattern for Reliability in C++
- Building a Multithreaded Stack and API in C++
- Transferring Files in C++
- A Self-Healing P2P Network in 30 Seconds in C++
- Cooperative Discovery Using UDP Broadcasts in C++
- Designing the API in C++
- Dealing with Blocked Peers in C++
- Detecting Memory Leaks in C++
- Try out SCons for building the examples
- Round-trip demonstrator in C++
- "Model Three" example doesn't shut down properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zguide-examples.