path: root/rpc/rpc-lib/
diff options
authorXavier Hernandez <>2018-01-19 12:18:13 +0100
committerRaghavendra G <>2019-05-11 14:25:53 +0000
commit59841f7e1ff0511b04884015441a181a56d07bea (patch)
tree7b4f16752014cf0cfc0ba1aad1847a43325e28a9 /rpc/rpc-lib/
parentda4601d536da761ce908a2461a0930857f99f171 (diff)
rpc: implement reconnect back-off strategy
When a connection failure happens, gluster tries to reconnect every 3 seconds. In some cases the failure is spurious, so a delay of 3 seconds could be unnecessarily long. This patch implements a back-off strategy that tries a reconnect as soon as 1 tenth of a second. If this fails, the time is doubled until it's around 3 seconds. After that, the reconnect is attempted every 3 seconds as before. Change-Id: Icb3fbe20d618f50cbbb599dce542b4e871c22149 Updates: bz#1193929 Signed-off-by: Xavier Hernandez <>
Diffstat (limited to 'rpc/rpc-lib/')
0 files changed, 0 insertions, 0 deletions