From 6cf090070ee9fccf23514f73ed22950764c9f1ca Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 14 Nov 2011 10:01:03 +0100 Subject: [PATCH] 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). --- source3/include/local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1