+Wed Dec 8 16:15:11 CET 2004 Pekka Riikonen <priikone@silcnet.org>
+
+ * Do not try to initiate backup resuming protocol forever.
+ Affected file silcd/server_backup.c.
+
Wed Nov 24 18:24:05 CET 2004 Pekka Riikonen <priikone@silcnet.org>
* ID change in resuming has to be done before changing
SilcUInt8 session;
SilcServerBackupProtocolSession *sessions;
SilcUInt32 sessions_count;
+ SilcUInt32 initiator_restart;
long start;
unsigned int responder : 1;
unsigned int received_failure : 1;
ctx->sock = NULL;
}
+ /* If failed after 10 attempts, it won't work, give up */
+ if (ctx->initiator_restart > 10)
+ ctx->received_failure = TRUE;
+
if (!ctx->received_failure) {
/* Protocol error, probably timeout. Just restart the protocol. */
SilcServerBackupProtocolContext proto_ctx;
proto_ctx->responder = FALSE;
proto_ctx->type = SILC_SERVER_BACKUP_START;
proto_ctx->start = time(0);
+ proto_ctx->initiator_restart = ctx->initiator_restart + 1;
/* Start through scheduler */
silc_schedule_task_add(server->schedule, 0,