Date: Mon, 4 Oct 2010 15:48:03 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r213405 - projects/sv/usr.sbin/netdumpsrv Message-ID: <201010041548.o94Fm3EM018842@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Mon Oct 4 15:48:03 2010 New Revision: 213405 URL: http://svn.freebsd.org/changeset/base/213405 Log: Increase the timeout value to 10 mins. Reported by: pluknet Modified: projects/sv/usr.sbin/netdumpsrv/netdumpsrv.c Modified: projects/sv/usr.sbin/netdumpsrv/netdumpsrv.c ============================================================================== --- projects/sv/usr.sbin/netdumpsrv/netdumpsrv.c Mon Oct 4 15:39:53 2010 (r213404) +++ projects/sv/usr.sbin/netdumpsrv/netdumpsrv.c Mon Oct 4 15:48:03 2010 (r213405) @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #include <string.h> #define MAX_DUMPS 256 /* Dumps per IP before to be cleaned out. */ -#define CLIENT_TIMEOUT 120 /* Clients timeout (secs). */ +#define CLIENT_TIMEOUT 600 /* Clients timeout (secs). */ #define CLIENT_TPASS 10 /* Clients timeout pass (secs). */ #define PFLAGS_ABIND 0x01 @@ -370,9 +370,14 @@ timeout_clients(void) last_timeout_check = now; /* Traverse the list looking for stale clients. */ - SLIST_FOREACH_SAFE(client, &clients, iter, tmp) - if (client->last_msg + CLIENT_TIMEOUT < now) + SLIST_FOREACH_SAFE(client, &clients, iter, tmp) { + if (client->last_msg + CLIENT_TIMEOUT < now) { + LOGINFO("Timingout with such values: %jd + %jd < %jd\n", + (intmax_t)client->last_msg, + (intmax_t)CLIENT_TIMEOUT, (intmax_t)now); handle_timeout(client); + } + } } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010041548.o94Fm3EM018842>