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 | daf179bcd6297b525bfc644efb154734723f4d58 (patch) | |
tree | 444bfab8c11bcf40a84aeb51425b6ce4440dd15e /source/include/local.h | |
parent | f6121fb55b27178f1bcae00a7225e03028f9e7d4 (diff) | |
download | samba-daf179bcd6297b525bfc644efb154734723f4d58.tar.gz samba-daf179bcd6297b525bfc644efb154734723f4d58.tar.xz samba-daf179bcd6297b525bfc644efb154734723f4d58.zip |
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
Diffstat (limited to 'source/include/local.h')
-rw-r--r-- | source/include/local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/include/local.h b/source/include/local.h index 20fa5ff52a4..bf828b5894e 100644 --- a/source/include/local.h +++ b/source/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 |