From fd8036cd7a93886f500bffaa28eea48a318d47cf Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Thu, 4 Jun 2015 18:43:10 +0300 Subject: [PATCH] ratelimit: update the last time used for the pipe --- modules/ratelimit/ratelimit_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ratelimit/ratelimit_helper.c b/modules/ratelimit/ratelimit_helper.c index 59efc57dc5e..4256247b71e 100644 --- a/modules/ratelimit/ratelimit_helper.c +++ b/modules/ratelimit/ratelimit_helper.c @@ -822,6 +822,8 @@ void rl_rcv_bin(int packet_type, struct receive_info *ri) LM_WARN("limit %d different from the initial one %d for " "pipe %.*s", limit, (*pipe)->limit, name.len, name.s); } + /* set the last used time */ + (*pipe)->last_used = time(0); /* set the destination's counter */ (*pipe)->dsts[index].counter = counter; (*pipe)->dsts[index].update = now;