From: Andreas Schneider Date: Mon, 14 Nov 2011 09:01:03 +0000 (+0100) Subject: s3-winbind: Increase the negative cache entry timout. X-Git-Tag: ldb-1.1.4~309 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6cf090070ee9fccf23514f73ed22950764c9f1ca;p=ddiss%2Fsamba.git s3-winbind: Increase the negative cache entry timout. The timout for the cache entry of a negative connection should be the double of a connect timeout (which is 30 seconds). --- diff --git a/source3/include/local.h b/source3/include/local.h index 203f257dca2..281248c0e40 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -218,7 +218,7 @@ #define INVALID_SHARENAME_CHARS "%<>*?|/\\+=;:\"," /* Seconds between connection attempts to a remote server. */ -#define FAILED_CONNECTION_CACHE_TIMEOUT 30 +#define FAILED_CONNECTION_CACHE_TIMEOUT (LONG_CONNECT_TIMEOUT * 2 / 1000) /* Default hash size for the winbindd cache. */ #define WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE 5000