From: Kevin Webb Date: Thu, 20 Nov 2008 21:20:26 +0000 (+0000) Subject: Tweaked the timing of flow expiration. X-Git-Tag: DistributedRateLimiting-0.1-0~39 X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=commitdiff_plain;h=d21104e4fb6400d420027b865833cae78697cda3;hp=5196115d2999ca57181ef592e7907d7afb14c1b3 Tweaked the timing of flow expiration. --- diff --git a/drl/raterouter.h b/drl/raterouter.h index e6de5e9..958ef4e 100644 --- a/drl/raterouter.h +++ b/drl/raterouter.h @@ -41,7 +41,8 @@ enum accountings { ACT_STANDARD = 1, ACT_SAMPLEHOLD = 2, ACT_SIMPLE = 3 }; #define COMM_DEFS /* global constants */ -#define IDENT_CLEAN_INTERVAL 5 /* in seconds */ +#define IDENT_CLEAN_INTERVAL 10 /* in seconds */ + #define LIMITER_LISTEN_PORT 9001 /** diff --git a/drl/standard.h b/drl/standard.h index 59c45f7..d5799d6 100644 --- a/drl/standard.h +++ b/drl/standard.h @@ -16,7 +16,7 @@ /** The number of seconds after which a flow is considered to be inactive. * Inactive flows will be removed from the table during the next call to the * cleanup function. */ -#define FLOW_IDLE_TIME 10 +#define FLOW_IDLE_TIME 30 /** Representation of a flow in a standard table. */ typedef struct std_flow {