Explorar el Código

modules/cdp: changed load balancing timer from second resolution to millisecond resolution

jaybeepee hace 10 años
padre
commit
f9aa4a219b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      modules/cdp/session.h

+ 4 - 0
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;