From 0884d14b2be3dc6b2c992bd63bdfd76c3d6fcca1 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 16 Jun 2010 15:38:48 +0100 Subject: Attempt to reconnect less frequently. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous constants made MC really keen. Trying again after 1 second is fine if the CM crashed, but the normal situation is that the server fell over, or the network is broken, in which case 10 seconds, 30 seconds, 1½ minutes, 4½ minutes, 13½ minutes, then every half hour seems a lot more reasonable. --- src/mcd-connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcd-connection.c b/src/mcd-connection.c index ba96a9d7..14d0f0e6 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -75,8 +75,8 @@ #include "_gen/cli-Connection_Interface_Contact_Capabilities_Draft1-body.h" #include "_gen/cli-Connection_Interface_Contact_Capabilities-body.h" -#define INITIAL_RECONNECTION_TIME 1 /* 1 second */ -#define RECONNECTION_MULTIPLIER 2 +#define INITIAL_RECONNECTION_TIME 10 /* seconds */ +#define RECONNECTION_MULTIPLIER 3 #define MCD_CONNECTION_PRIV(mcdconn) (MCD_CONNECTION (mcdconn)->priv) -- cgit v1.2.1