shinberg / cpp-hiredis-cluster

c++ cluster wrapper for hiredis with async and unix sockets features
BSD 3-Clause "New" or "Revised" License
65 stars 26 forks source link

Improvment work with redis cluster disconnections #3

Closed aboutbus closed 7 years ago

aboutbus commented 8 years ago

Added two examples to show issues with server disconnections: examples/example_disconnect.cpp (bin/sync_disconnnect) examples/asyncexample_disconnect.cpp (bin/async_disconnect)

How to reproduce: Build examples with previous version of library (include folder). Run examples and stop redis cluster (killall redis-server). Segmentation fault should occurs.

Added proposed fixes for these issues. Build and run examples with changes in library (include folder).

shinberg commented 7 years ago

thanks for help, improvements have been made in another way