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).
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).