diff options
author | Jeremy Allison <jra@samba.org> | 2003-01-16 20:08:33 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-01-16 20:08:33 +0000 |
commit | effbd70c21d49255e9cf5eae3e71a7fe93fc7950 (patch) | |
tree | 9bdc2ae7d405be443b21f3e8e40382aa9179e163 /source3/include | |
parent | 815dcc082ab76ba9d63baf497f59d6cbb2915357 (diff) | |
download | samba-effbd70c21d49255e9cf5eae3e71a7fe93fc7950.tar.gz samba-effbd70c21d49255e9cf5eae3e71a7fe93fc7950.tar.bz2 samba-effbd70c21d49255e9cf5eae3e71a7fe93fc7950.zip |
Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit 3d04872499332ef2d8e7479b924afc8fc1ac29d7)
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 |