summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-11-14 10:01:03 +0100
committerAndreas Schneider <asn@samba.org>2011-11-15 14:22:00 +0100
commit6cf090070ee9fccf23514f73ed22950764c9f1ca (patch)
treeed95d4fd8e39070f429444cb0194374457474386 /source3
parentc1fd56fdd408c814158e9d4eaed58da08db8efc7 (diff)
downloadsamba-6cf090070ee9fccf23514f73ed22950764c9f1ca.tar.gz
samba-6cf090070ee9fccf23514f73ed22950764c9f1ca.tar.bz2
samba-6cf090070ee9fccf23514f73ed22950764c9f1ca.zip
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).
Diffstat (limited to 'source3')
-rw-r--r--source3/include/local.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 203f257dca..281248c0e4 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