diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-16 20:08:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-16 20:08:26 +0000 |
commit | 6b2eb72df0bcf9143d013e64410ebde78d57b1c4 (patch) | |
tree | 95375431d54a8697750f0a12a04ef738cad166cc /source3/include | |
parent | 862d383781b5e3959e512df58714536f0374b92a (diff) | |
download | samba-6b2eb72df0bcf9143d013e64410ebde78d57b1c4.tar.gz samba-6b2eb72df0bcf9143d013e64410ebde78d57b1c4.tar.bz2 samba-6b2eb72df0bcf9143d013e64410ebde78d57b1c4.zip |
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit daf179bcd6297b525bfc644efb154734723f4d58)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h index 20fa5ff52a..bf828b5894 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -216,4 +216,12 @@ /* Max number of open RPC pipes. */ #define MAX_OPEN_PIPES 2048 +/* Tuning for server auth mutex. */ +#define CLI_AUTH_TIMEOUT 5000 /* In milli-seconds. */ +#define NUM_CLI_AUTH_CONNECT_RETRIES 3 +/* Number in seconds to wait for the mutex. This must be less than 30 seconds. */ +#define SERVER_MUTEX_WAIT_TIME ( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5) +/* Number in seconds for winbindd to wait for the mutex. Make this 2 * smbd wait time. */ +#define WINBIND_SERVER_MUTEX_WAIT_TIME (( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5)*2) + #endif |