Re: Question not found in Squid FAQ

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 30 Jun 2001 11:01:44 +0200

Robert Collins wrote:

> The cache timeout is per scheme by design - NTLM overhead vs basic vs digest
> is quite different. I can make it global again if you want (but I don't
> think it makes sense to do so). The authenticate_ttl directive should have
> been removed from the cf.date.pre file and Config struct as it isn't used at
> all in 2.5...

Well... this is not the case anyway. Defenitely in use for something.

NAME: authenticate_ttl
TYPE: time_t
DEFAULT: 1 hour
LOC: Config.authenticateTTL
DOC_START
        The time a user & their credentials stay in the logged in user
cache
        since their last request. When the garbage interval passes, all
        user credentials that have passed their TTL are removed from
memory.
DOC_END

./authenticate.c:
       /* if we need to have inpedendent expiry clauses, insert a module
call
        * here */
       debug(29, 4) ("authenticateProxyUserCacheCleanup: Cache
entry:\n\tType: %d\n\tUsername: %s\n\texpires: %d\n\treferences: %d\n",
auth_user->auth_type, username, auth_user->expiretime +
Config.authenticateTTL, auth_user->references);
       if (auth_user->expiretime + Config.authenticateTTL <=
current_time.tv_sec) {
           debug(29, 5) ("authenticateProxyUserCacheCleanup: Removing
user %s from cache due to timeout.\n", username);
           /* the minus 1 accounts for the cache lock */

--
Henrik
Received on Sat Jun 30 2001 - 03:09:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:04 MST