Reconnect
rthill opened this issue · comments
How do I properly reconnect when the memcached server has been restarted?
I've tried closing the connection:
server.close()
server.disconnect()
but I always get the error:
umemcache: Connection reset by peer
Client can not be reconnected
when running server.connect()
It is not a supported feature to reconnect a socket, hence the error. The idea is to create a new connectiom object instead should the connection be lost
On 22 okt 2012, at 18:49, "Raoul Thill" <notifications@github.commailto:notifications@github.com> wrote:
How do I properly reconnect when the memcached server has been restarted?
I've tried closing the connection:
server.close()
server.disconnect()
but I always get the error:
umemcache: Connection reset by peer
Client can not be reconnected
when running server.connect()
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/18.
Thanks for the update, implemented reconnect in my code based on a new connection object.