Comments (2)
I think you misuse redis API: once you entered into the subscription
When a Redis client subscribes to a Pub/Sub channel, the protocol changes semantics and becomes a push protocol, that is, the client no longer requires sending commands, because the server will automatically send to the client new messages (for the channels the client is subscribed to) as soon as they are received.
See, https://redis.io/topics/protocol
In other words there is a problem to know, is it a new message or subscription confirmation to channel-2.
Easy workaround : just don't validate (usually it is fine), or do manual inspection of each new redis message, until u get all confirmation, as it might be:
confirm-channel1, msg-channel-1, msg-channel-1, ..., msg-channel-1, confirm-channel-2
from cpp-bredis.
Thanks @basiliscos , I did the manual validation. Just wanted to make sure I didn't miss a hidden feature.
from cpp-bredis.
Related Issues (20)
- Add `conan` package manager support
- Mac build failure HOT 4
- Redis Stream example HOT 1
- Unclear how to use drop_result. HOT 13
- Connection does not support reconnect HOT 1
- Add a short cut header include file maybe? HOT 3
- performance improvements ideas HOT 1
- Consider (minimal) C++11 support HOT 4
- Fix CMake warning while using CMake > 2.6.0 HOT 2
- Doesn compile on WSL2 (Linux ubuntu gcc-8) HOT 3
- wrong command_size on empty value HOT 1
- Add `hunter` package manager support HOT 1
- using as cpp-bredis HOT 5
- why do we need boost 1.69 ? how about boost 1.66 HOT 4
- Wrapping sockets with Bredis::Connection HOT 4
- Boost 1.74 and BOOST_ASIO_NO_DEPRECATED HOT 2
- cmake boost on windows HOT 1
- Clarification regarding multiple messages HOT 5
- Alternative Redis client proposed for inclusion in Boost
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 cpp-bredis.