client: handle transient connection errors
authorDavid Disseldorp <ddiss@suse.de>
Tue, 5 Apr 2011 11:26:29 +0000 (13:26 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 23 Jun 2011 13:56:17 +0000 (15:56 +0200)
commit58c7f5bf00c7f4efde67c654c2ae5cc25be2c51b
treeefc088c1fecc710f2abdc6254a26135c0714eefd
parent4a4345096809170bc03dd8284830b1dd61b9f28b
client: handle transient connection errors

Client connections to the ctdbd unix domain socket may fail
intermittently while the server is under heavy load. This change
introduces a client connect retry loop.

During failure the client will retry for a maximum of 64 seconds, the
ctdb --timelimit option can be used to cap client runtime.

Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit dc0c58547cd4b20a8e2cd21f3c8363f34fd03e75)
ctdb/client/ctdb_client.c