Lag handling issue [patch 2]
"R. Wajda" <[email protected]> Sun, 27 Apr 2008 03:42:25 +0200
| Newsgroups | gmane.network.silc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, this patch fixes silc-client inability to reach lag_max_before_disconnect. Previous patch didn't allow to recover from high lag. Regards, R. Wajda _______________________________________________________________________ Info: https://lists.silcnet.org/mailman/listinfo/silc-announce Archive: https://lists.silcnet.org/pipermail/silc-announce FAQ: http://silcnet.org/support/faq/
silc-lag_loop.patch
(text/x-patch, 505 B)
--- silc-lag.c_1.1.4 2008-04-25 06:03:20.000000000 +0200
+++ silc-lag.c 2008-04-27 03:37:24.000000000 +0200
@@ -17,7 +17,6 @@
static void lag_get(SILC_SERVER_REC *server)
{
SilcBuffer idp;
- g_get_current_time(&server->lag_sent);
server->lag_last_check = time(NULL);
/* Send PING */
@@ -92,6 +91,7 @@
} else if (rec->lag_last_check+lag_check_time < now &&
rec->connected) {
/* no commands in buffer - get the lag */
+ g_get_current_time(&rec->lag_sent);
lag_get(rec);
}
}