twitter/twemproxy — pull request #29 by charsyam (2012-12-20 19:03:14+00:00)
Title: Robust hash ring failure retry mechanism

There are 2 step to check connection.

step 1] trying to connect in server_failure

If it succeed, going to step 2

step 2] trying to send heartbeat command to fail server

If it succeed, it will update hash ring.

and it uses array just to connect failed servers to prevent infinity loop for connecting

and in heartbeat stage. It uses msg_two_insert for timeout

but, if there is no timeout setting in conf, It will just wait for response like other message.