[sr-dev] git:master:f9aa4a21: modules/cdp: changed load balancing timer from second resolution to millisecond resolution
jaybeepee
jason.penton at gmail.com
Fri Sep 11 12:03:12 CEST 2015
Module: kamailio
Branch: master
Commit: f9aa4a219bc0e5a44b167772d6e3b86d99a59932
URL: https://github.com/kamailio/kamailio/commit/f9aa4a219bc0e5a44b167772d6e3b86d99a59932
Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-09-11T12:01:10+02:00
modules/cdp: changed load balancing timer from second resolution to millisecond resolution
---
Modified: modules/cdp/session.h
---
Diff: https://github.com/kamailio/kamailio/commit/f9aa4a219bc0e5a44b167772d6e3b86d99a59932.diff
Patch: https://github.com/kamailio/kamailio/commit/f9aa4a219bc0e5a44b167772d6e3b86d99a59932.patch
---
diff --git a/modules/cdp/session.h b/modules/cdp/session.h
index 11adc86..8758081 100644
--- a/modules/cdp/session.h
+++ b/modules/cdp/session.h
@@ -124,6 +124,10 @@ typedef struct _cdp_auth_session_t {
time_t timeout; /**< absolute time for session timeout -1 means forever */
time_t lifetime; /**< absolute time for auth lifetime -1 means forever */
time_t grace_period; /**< grace_period in seconds */
+ unsigned int last_requested_lifetime; /**< the following 3 timers are used to store what we are */
+ unsigned int last_requested_timeout; /**<requesitng in a request, if the answer does not have anything */
+ unsigned int last_requested_grace; /**<different then we will use these values */
+
void* generic_data;
} cdp_auth_session_t;
More information about the sr-dev
mailing list