basiliscos / cpp-bredis

Boost::ASIO low-level redis client (connector)
MIT License
147 stars 36 forks source link

Connection does not support reconnect #23

Closed ovanes closed 5 years ago

ovanes commented 5 years ago

It happens that connections can be dropped. Given that there is a basic demand to reconnect. There are two options for this:

ovanes commented 5 years ago

I misread the source code. There is a member function

inline NextLayer &next_layer() { return stream_; }

which allows to move-assign a new socket. Closing the issue.