cpp-redis / cpp_redis

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
MIT License
720 stars 199 forks source link

cpp_redis_streams_client.cpp hangs #33

Open sab24 opened 5 years ago

sab24 commented 5 years ago

Describe the bug A clear and concise description of what the bug is. cpp_redis_streams_client hangs

To Reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/cpp-redis/cpp_redis.git
  2. cd cpp_redis
  3. git submodule init && git submodule update
  4. mkdir build && cd build
  5. CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .. -DCMAKE_BUILD_TYPE=Release
  6. make
  7. make install
  8. vi examples/CMakeLists.txt, change line to target_link_libraries(${EXAMPLE} cpp_redis tacopie)
  9. cd examples
  10. mkdir build
  11. cd build
  12. CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake ..
  13. ./cpp_redis_streams_client

Expected behavior Some std::cout output, the program seems to hang before that line.

Is this feature already implemented in cpp_redis?