From 48ceb25636aaf832a00e0067405be63fd72622b2 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 14 Mar 2007 15:19:12 +0000 Subject: [PATCH] Retry user resolving many times if timedout. --- lib/silcclient/client_notify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/silcclient/client_notify.c b/lib/silcclient/client_notify.c index be982311..07d2589a 100644 --- a/lib/silcclient/client_notify.c +++ b/lib/silcclient/client_notify.c @@ -33,6 +33,7 @@ typedef struct { SilcFSMThread fsm; /* Notify FSM thread */ SilcChannelEntry channel; /* Channel entry being resolved */ SilcClientEntry client_entry; /* Client entry being resolved */ + SilcUInt32 resolve_retry; /* Resolving retry counter */ } *SilcClientNotify; /************************ Static utility functions **************************/ @@ -54,7 +55,9 @@ static void silc_client_notify_resolved(SilcClient client, /* If entry is still invalid, resolving failed. Finish notify processing. */ if (notify->client_entry && !notify->client_entry->internal.valid) { - silc_fsm_next(notify->fsm, silc_client_notify_processed); + /* If resolving timedout try it again many times. */ + if (status != SILC_STATUS_ERR_TIMEDOUT || ++notify->resolve_retry > 1000) + silc_fsm_next(notify->fsm, silc_client_notify_processed); silc_client_unref_client(client, conn, notify->client_entry); } -- 2.24.0