s3-winbind: Increase the negative cache entry timout.
authorAndreas Schneider <asn@samba.org>
Mon, 14 Nov 2011 09:01:03 +0000 (10:01 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 15 Nov 2011 13:22:00 +0000 (14:22 +0100)
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

index 203f257dca23a094b8349eec1cab57b839fd54ff..281248c0e40e1813ea66e36b2e9ac61b9c97b62c 100644 (file)
 #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